fix: 修复节点输出,输出结果重复 (#928)

(cherry picked from commit db167dd8b4)
This commit is contained in:
shaohuzhang1 2024-08-06 09:51:16 +08:00 committed by shaohuzhang1
parent 73904d5407
commit e8e6c489fd
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ def write_context_stream(node_variable: Dict, workflow_variable: Dict, node: INo
answer = ''
for chunk in response:
answer += chunk.content
yield answer
yield chunk.content
_write_context(node_variable, workflow_variable, node, workflow, answer)

View File

@ -44,7 +44,7 @@ def write_context_stream(node_variable: Dict, workflow_variable: Dict, node: INo
answer = ''
for chunk in response:
answer += chunk.content
yield answer
yield chunk.content
_write_context(node_variable, workflow_variable, node, workflow, answer)