Skip to content

Commit

Permalink
fix: Workflow embedding sub application thinking process switch canno…
Browse files Browse the repository at this point in the history
…t control thinking process output (#2502)
  • Loading branch information
shaohuzhang1 authored Mar 5, 2025
1 parent a738932 commit b10147e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,12 @@ def execute_block(self, message_list: List[BaseMessage],
return manage.get_base_to_response().to_block_response(str(chat_id), str(chat_record_id),
content, True,
request_token, response_token,
{'reasoning_content': reasoning_content,
'answer_list': [{
'content': content,
'reasoning_content': reasoning_content
}]})
{
'reasoning_content': reasoning_content if reasoning_content_enable else '',
'answer_list': [{
'content': content,
'reasoning_content': reasoning_content if reasoning_content_enable else ''
}]})
except Exception as e:
all_text = 'Exception:' + str(e)
write_context(self, manage, 0, 0, all_text)
Expand Down

0 comments on commit b10147e

Please sign in to comment.