mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-16 17:36:07 +00:00
fix:del some print ,and amend respback on stream judge ,and del in dingtalk this is_stream_output_supported() use
This commit is contained in:
@@ -185,8 +185,6 @@ class DashScopeAPIRunner(runner.RequestRunner):
|
||||
# 将参考资料替换到文本中
|
||||
pending_content = self._replace_references(pending_content, references_dict)
|
||||
|
||||
|
||||
|
||||
yield llm_entities.Message(
|
||||
role='assistant',
|
||||
content=pending_content,
|
||||
@@ -261,13 +259,11 @@ class DashScopeAPIRunner(runner.RequestRunner):
|
||||
role='assistant',
|
||||
content=pending_content,
|
||||
is_final=is_final,
|
||||
|
||||
)
|
||||
|
||||
# 保存当前会话的session_id用于下次对话的语境
|
||||
query.session.using_conversation.uuid = stream_output.get('session_id')
|
||||
|
||||
|
||||
else:
|
||||
for chunk in response:
|
||||
if chunk.get('status_code') != 200:
|
||||
|
||||
Reference in New Issue
Block a user