From 9f20c2b223f4264ee0c3c1ac6f41839d8d2e84c0 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Mon, 16 Mar 2026 10:40:37 +0800 Subject: [PATCH] fix: The system prompt for optimizing nodes is ineffective, and the optimization results do not output issues but directly answer the user's questions. #4874 --- .../flow/step_node/question_node/impl/base_question_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/application/flow/step_node/question_node/impl/base_question_node.py b/apps/application/flow/step_node/question_node/impl/base_question_node.py index ff724e4011c..d2ccad823f0 100644 --- a/apps/application/flow/step_node/question_node/impl/base_question_node.py +++ b/apps/application/flow/step_node/question_node/impl/base_question_node.py @@ -125,7 +125,7 @@ def generate_prompt_question(self, prompt): return HumanMessage(self.workflow_manage.generate_prompt(prompt)) def generate_message_list(self, system: str, prompt: str, history_message): - if system is None or len(system) == 0: + if system is not None and len(system) > 0: return [SystemMessage(self.workflow_manage.generate_prompt(system)), *history_message, HumanMessage(self.workflow_manage.generate_prompt(prompt))] else: