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

This commit is contained in:
shaohuzhang1 2024-08-06 09:51:16 +08:00 committed by GitHub
parent b55524ad4e
commit db167dd8b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)