Skip to content

Commit ea8ad1d

Browse files
authored
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 (#4262)
1 parent 1174ee1 commit ea8ad1d

File tree

1 file changed

+11
-1
lines changed
  • ui/src/components/ai-chat/component/answer-content

1 file changed

+11
-1
lines changed

ui/src/components/ai-chat/component/answer-content/index.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,17 @@ function showSource(row: any) {
156156
}
157157
158158
const regenerationChart = (chat: chatType) => {
159-
props.sendMessage(chat.problem_text, { re_chat: true })
159+
const startNode = props.chatRecord.execution_details?.find(
160+
(detail) => detail.type === 'start-node',
161+
)
162+
props.sendMessage(chat.problem_text, {
163+
re_chat: true,
164+
image_list: startNode?.image_list || [],
165+
document_list: startNode?.document_list || [],
166+
audio_list: startNode?.audio_list || [],
167+
video_list: startNode?.video_list || [],
168+
other_list: startNode?.other_list || [],
169+
})
160170
}
161171
const stopChat = (chat: chatType) => {
162172
props.chatManagement.stop(chat.id)

0 commit comments

Comments
 (0)