From 89cea4e20a5ad8e9d9dffa0b45d8e26194ed95ee Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 14 Nov 2024 09:50:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dai=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E6=A1=86=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/application/flow/workflow_manage.py | 2 +- ui/src/components/ai-chat/component/answer-content/index.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/application/flow/workflow_manage.py b/apps/application/flow/workflow_manage.py index edd21391d..0cd92e8e1 100644 --- a/apps/application/flow/workflow_manage.py +++ b/apps/application/flow/workflow_manage.py @@ -515,7 +515,7 @@ class WorkflowManage: if index == 0: result.append(answer.get('content')) continue - if answer.get('type') != answer_text_list[index - 1]: + if answer.get('type') != answer_text_list[index - 1].get('type'): result.append(answer.get('content')) else: result[-1] += answer.get('content') diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index e6456f3e7..1a75737bb 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -8,7 +8,9 @@