Skip to content

Commit b10147e

Browse files
authored
fix: Workflow embedding sub application thinking process switch cannot control thinking process output (#2502)
1 parent a738932 commit b10147e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

apps/application/chat_pipeline/step/chat_step/impl/base_chat_step.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,12 @@ def execute_block(self, message_list: List[BaseMessage],
307307
return manage.get_base_to_response().to_block_response(str(chat_id), str(chat_record_id),
308308
content, True,
309309
request_token, response_token,
310-
{'reasoning_content': reasoning_content,
311-
'answer_list': [{
312-
'content': content,
313-
'reasoning_content': reasoning_content
314-
}]})
310+
{
311+
'reasoning_content': reasoning_content if reasoning_content_enable else '',
312+
'answer_list': [{
313+
'content': content,
314+
'reasoning_content': reasoning_content if reasoning_content_enable else ''
315+
}]})
315316
except Exception as e:
316317
all_text = 'Exception:' + str(e)
317318
write_context(self, manage, 0, 0, all_text)

0 commit comments

Comments
 (0)