From 92a7291cc979a8a560425170d06a195d88dc267a Mon Sep 17 00:00:00 2001 From: takatost Date: Tue, 10 Sep 2024 21:05:16 +0800 Subject: [PATCH] fix(workflow): answers are output simultaneously across different branches in the question classifier node. --- api/core/workflow/nodes/answer/answer_stream_generate_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/workflow/nodes/answer/answer_stream_generate_router.py b/api/core/workflow/nodes/answer/answer_stream_generate_router.py index 2562b9ce960ec3..06050e15490cbc 100644 --- a/api/core/workflow/nodes/answer/answer_stream_generate_router.py +++ b/api/core/workflow/nodes/answer/answer_stream_generate_router.py @@ -151,7 +151,7 @@ def _recursive_fetch_answer_dependencies( if source_node_type in ( NodeType.ANSWER.value, NodeType.IF_ELSE.value, - NodeType.QUESTION_CLASSIFIER, + NodeType.QUESTION_CLASSIFIER.value, ): answer_dependencies[answer_node_id].append(source_node_id) else: