Skip to content

Commit

Permalink
fix: Workflow non streaming dialogue cannot respond (#2188)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 authored Feb 10, 2025
1 parent d4fbf09 commit cdb804b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/application/flow/workflow_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ def run_block(self, language='zh'):
answer_tokens = sum([row.get('answer_tokens') for row in details.values() if
'answer_tokens' in row and row.get('answer_tokens') is not None])
answer_text_list = self.get_answer_text_list()
answer_text = '\n\n'.join(answer['content'] for answer in answer_text_list)
answer_text = '\n\n'.join(
'\n\n'.join([a.get('content') for a in answer]) for answer in
answer_text_list)
self.work_flow_post_handler.handler(self.params['chat_id'], self.params['chat_record_id'],
answer_text,
self)
Expand Down

0 comments on commit cdb804b

Please sign in to comment.