From 7d161cdd431b3a78dbaf98b5ea212df0747489c9 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:39:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E4=BB=B6=E6=95=B0=E6=8D=AE=20(#1647)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 10151bd5b..cc216e4f5 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -39,6 +39,7 @@ :type="type" :send-message="sendMessage" :open-chat-id="openChatId" + :chat-management="ChatManagement" v-model:chat-id="chartOpenId" v-model:loading="loading" v-if="type !== 'log'" @@ -286,7 +287,15 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para record_id: '', chat_id: '', vote_status: '-1', - status: undefined + status: undefined, + upload_meta: { + image_list: + other_params_data && other_params_data.image_list ? other_params_data.image_list : [], + document_list: + other_params_data && other_params_data.document_list + ? other_params_data.document_list + : [] + } }) chatList.value.push(chat) ChatManagement.addChatRecord(chat, 50, loading)