Skip to content

Commit 55a7d73

Browse files
authored
fix: The thinking process information of AI dialogue nodes is lost (#3698)
1 parent 0531a6e commit 55a7d73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def save_context(self, details, workflow_manage):
188188
self.context['answer'] = details.get('answer')
189189
self.context['question'] = details.get('question')
190190
self.context['reasoning_content'] = details.get('reasoning_content')
191+
self.context['model_setting'] = details.get('model_setting')
191192
if self.node_params.get('is_result', False):
192193
self.answer_text = details.get('answer')
193194

@@ -274,6 +275,7 @@ def get_details(self, index: int, **kwargs):
274275
"index": index,
275276
'run_time': self.context.get('run_time'),
276277
'system': self.context.get('system'),
278+
'model_setting': self.context.get('model_setting'),
277279
'history_message': [{'content': message.content, 'role': message.type} for message in
278280
(self.context.get('history_message') if self.context.get(
279281
'history_message') is not None else [])],

0 commit comments

Comments
 (0)