mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: 添加对话中文件数据 (#1647)
This commit is contained in:
parent
c3d1389362
commit
7d161cdd43
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue