Skip to content

Commit e560b05

Browse files
committed
feat: 添加对话中图片数据
1 parent c3d1389 commit e560b05

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ui/src/components/ai-chat/index.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
:type="type"
4040
:send-message="sendMessage"
4141
:open-chat-id="openChatId"
42+
:chat-management="ChatManagement"
4243
v-model:chat-id="chartOpenId"
4344
v-model:loading="loading"
4445
v-if="type !== 'log'"
@@ -286,7 +287,15 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para
286287
record_id: '',
287288
chat_id: '',
288289
vote_status: '-1',
289-
status: undefined
290+
status: undefined,
291+
upload_meta: {
292+
image_list:
293+
other_params_data && other_params_data.image_list ? other_params_data.image_list : [],
294+
document_list:
295+
other_params_data && other_params_data.document_list
296+
? other_params_data.document_list
297+
: []
298+
}
290299
})
291300
chatList.value.push(chat)
292301
ChatManagement.addChatRecord(chat, 50, loading)

0 commit comments

Comments
 (0)