Skip to content

Commit 562256c

Browse files
committed
fix: Workflow non streaming dialogue cannot respond
1 parent d4fbf09 commit 562256c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/application/flow/workflow_manage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ def run_block(self, language='zh'):
335335
answer_tokens = sum([row.get('answer_tokens') for row in details.values() if
336336
'answer_tokens' in row and row.get('answer_tokens') is not None])
337337
answer_text_list = self.get_answer_text_list()
338-
answer_text = '\n\n'.join(answer['content'] for answer in answer_text_list)
338+
answer_text = '\n\n'.join(
339+
'\n\n'.join([a.get('content') for a in answer]) for answer in
340+
answer_text_list)
339341
self.work_flow_post_handler.handler(self.params['chat_id'], self.params['chat_record_id'],
340342
answer_text,
341343
self)

0 commit comments

Comments
 (0)