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:
Dong_master
2025-07-29 23:09:02 +08:00
committed by Junyan Qin
parent 074d359c8e
commit a9776b7b53
10 changed files with 127 additions and 186 deletions
-2
View File
@@ -148,7 +148,6 @@ class DifyServiceAPIRunner(runner.RequestRunner):
if mode == 'workflow':
if chunk['event'] == 'node_finished':
if not is_stream:
if chunk['data']['node_type'] == 'answer':
yield llm_entities.Message(
role='assistant',
@@ -274,7 +273,6 @@ class DifyServiceAPIRunner(runner.RequestRunner):
content=self._try_convert_thinking(pending_agent_message),
)
if chunk['event'] == 'agent_thought':
if chunk['tool'] != '' and chunk['observation'] != '': # 工具调用结果,跳过
continue