Skip to content

Commit 262040c

Browse files
committed
fix: Error in obtaining variables for character settings
1 parent ad9c837 commit 262040c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/application/flow/step_node/ai_chat_step_node/impl/base_chat_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def execute(self, model_id, system, prompt, dialogue_number, history_chat_record
111111
question = self.generate_prompt_question(prompt)
112112
self.context['question'] = question.content
113113
system = self.workflow_manage.generate_prompt(system)
114-
self.context['system'] = question.content
114+
self.context['system'] = system
115115
message_list = self.generate_message_list(system, prompt, history_message)
116116
self.context['message_list'] = message_list
117117
if stream:

apps/application/flow/step_node/question_node/impl/base_question_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def execute(self, model_id, system, prompt, dialogue_number, history_chat_record
9393
question = self.generate_prompt_question(prompt)
9494
self.context['question'] = question.content
9595
system = self.workflow_manage.generate_prompt(system)
96-
self.context['system'] = question.content
96+
self.context['system'] = system
9797
message_list = self.generate_message_list(system, prompt, history_message)
9898
self.context['message_list'] = message_list
9999
if stream:

0 commit comments

Comments
 (0)