Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(workflow): answers are output simultaneously across different braches in the question classifier node. (#8225)

takatostfdbbdb706f75
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 2562b9ce960..06050e15490 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 @@ class AnswerStreamGeneratorRouter:
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: