Skip to content

Commit 9c56c7e

Browse files
authored
fix: When automatic sending is not selected, the text conversion should be displayed in the position of the question input box (#2946)
1 parent 6484fef commit 9c56c7e

File tree

1 file changed

+4
-2
lines changed
  • ui/src/components/ai-chat/component/chat-input-operate

1 file changed

+4
-2
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,9 @@ const uploadRecording = async (audioBlob: Blob) => {
688688
recorderStatus.value = 'TRANSCRIBING'
689689
const formData = new FormData()
690690
formData.append('file', audioBlob, 'recording.mp3')
691-
bus.emit('on:transcribing', true)
691+
if (props.applicationDetails.stt_autosend) {
692+
bus.emit('on:transcribing', true)
693+
}
692694
applicationApi
693695
.postSpeechToText(props.applicationDetails.id as string, formData, localLoading)
694696
.then((response) => {
@@ -767,7 +769,7 @@ function autoSendMessage() {
767769
document_list: uploadDocumentList.value,
768770
audio_list: uploadAudioList.value,
769771
video_list: uploadVideoList.value,
770-
other_list: uploadOtherList.value,
772+
other_list: uploadOtherList.value
771773
})
772774
inputValue.value = ''
773775
uploadImageList.value = []

0 commit comments

Comments
 (0)