From 9c56c7e198ae840c755987d00b3de23a880b8b93 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 22 Apr 2025 11:54:56 +0800 Subject: [PATCH] fix: When automatic sending is not selected, the text conversion should be displayed in the position of the question input box (#2946) --- .../ai-chat/component/chat-input-operate/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index 5babf0904..53d182f92 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -688,7 +688,9 @@ const uploadRecording = async (audioBlob: Blob) => { recorderStatus.value = 'TRANSCRIBING' const formData = new FormData() formData.append('file', audioBlob, 'recording.mp3') - bus.emit('on:transcribing', true) + if (props.applicationDetails.stt_autosend) { + bus.emit('on:transcribing', true) + } applicationApi .postSpeechToText(props.applicationDetails.id as string, formData, localLoading) .then((response) => { @@ -767,7 +769,7 @@ function autoSendMessage() { document_list: uploadDocumentList.value, audio_list: uploadAudioList.value, video_list: uploadVideoList.value, - other_list: uploadOtherList.value, + other_list: uploadOtherList.value }) inputValue.value = '' uploadImageList.value = []