fix: 修复节点输出,输出结果重复 (#928)
This commit is contained in:
parent
b55524ad4e
commit
db167dd8b4
@ -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)
|
||||
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user