diff --git a/ui/src/api/type/application.ts b/ui/src/api/type/application.ts index 077e23097..c423f1110 100644 --- a/ui/src/api/type/application.ts +++ b/ui/src/api/type/application.ts @@ -72,6 +72,7 @@ interface chatType { document_list: Array image_list: Array audio_list: Array + other_list: Array } } diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index 0f2296439..98ec1e6fa 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -125,6 +125,28 @@ +
+

+ {{ $t('common.fileUpload.document') }}: +

+ + + + +
diff --git a/ui/src/components/ai-chat/component/question-content/index.vue b/ui/src/components/ai-chat/component/question-content/index.vue index 33e01b816..d64749222 100644 --- a/ui/src/components/ai-chat/component/question-content/index.vue +++ b/ui/src/components/ai-chat/component/question-content/index.vue @@ -60,6 +60,26 @@ +
+ + + +
{{ chatRecord.problem_text }} @@ -121,6 +141,15 @@ const audio_list = computed(() => { ) return startNode?.audio_list || [] }) +const other_list = computed(() => { + if (props.chatRecord?.upload_meta) { + return props.chatRecord.upload_meta?.other_list || [] + } + const startNode = props.chatRecord.execution_details?.find( + (detail) => detail.type === 'start-node' + ) + return startNode?.other_list || [] +}) function downloadFile(item: any) { downloadByURL(item.url, item.name) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 78563ba85..7dba50c56 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -424,7 +424,9 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para ? other_params_data.document_list : [], audio_list: - other_params_data && other_params_data.audio_list ? other_params_data.audio_list : [] + other_params_data && other_params_data.audio_list ? other_params_data.audio_list : [], + other_list: + other_params_data && other_params_data.other_list ? other_params_data.other_list : [] } }) chatList.value.push(chat)