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: correct misplaced `ensure_ascii=False` (#22997)

Yongtao Huang5411fd3757e3
diff --git a/api/core/workflow/nodes/question_classifier/question_classifier_node.py b/api/core/workflow/nodes/question_classifier/question_classifier_node.py
index 15012fa48d5..3e4984ecd54 100644
--- a/api/core/workflow/nodes/question_classifier/question_classifier_node.py
+++ b/api/core/workflow/nodes/question_classifier/question_classifier_node.py
@@ -385,9 +385,8 @@ class QuestionClassifierNode(BaseNode):
text=QUESTION_CLASSIFIER_COMPLETION_PROMPT.format(
histories=memory_str,
input_text=input_text,
- categories=json.dumps(categories),
+ categories=json.dumps(categories, ensure_ascii=False),
classification_instructions=instruction,
- ensure_ascii=False,
)
)