fix: After uploading the file, ask a question. After completing the question and answer, change the answer and the file will not be uploaded again, resulting in the loss of file information (#4269)

v3.2
shaohuzhang1 2025-10-27 17:38:30 +08:00 committed by GitHub
parent f3bf9e2388
commit 8dbef83d7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 8 deletions

View File

@ -156,16 +156,17 @@ function showSource(row: any) {
} }
const regenerationChart = (chat: chatType) => { const regenerationChart = (chat: chatType) => {
const startNode = props.chatRecord.execution_details?.find( const container = props.chatRecord?.upload_meta
(detail) => detail.type === 'start-node', ? props.chatRecord.upload_meta
) : props.chatRecord.execution_details?.find((detail) => detail.type === 'start-node')
props.sendMessage(chat.problem_text, { props.sendMessage(chat.problem_text, {
re_chat: true, re_chat: true,
image_list: startNode?.image_list || [], image_list: container?.image_list || [],
document_list: startNode?.document_list || [], document_list: container?.document_list || [],
audio_list: startNode?.audio_list || [], audio_list: container?.audio_list || [],
video_list: startNode?.video_list || [], video_list: container?.video_list || [],
other_list: startNode?.other_list || [], other_list: container?.other_list || [],
}) })
} }
const stopChat = (chat: chatType) => { const stopChat = (chat: chatType) => {