Browse Source

fix(workflow): the answer node after the iteration node containing the answer was output prematurely (#8419)

takatost 7 tháng trước cách đây
mục cha
commit
f01602b570

+ 1 - 0
api/core/workflow/nodes/answer/answer_stream_generate_router.py

@@ -152,6 +152,7 @@ class AnswerStreamGeneratorRouter:
                 NodeType.ANSWER.value,
                 NodeType.IF_ELSE.value,
                 NodeType.QUESTION_CLASSIFIER.value,
+                NodeType.ITERATION.value,
             }:
                 answer_dependencies[answer_node_id].append(source_node_id)
             else: