Skip to content

Commit e06c7e2

Browse files
committed
fix: STT node
1 parent 9396166 commit e06c7e2

File tree

1 file changed

+9
-1
lines changed
  • ui/src/workflow/nodes/speech-to-text-node

1 file changed

+9
-1
lines changed

ui/src/workflow/nodes/speech-to-text-node/index.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<ModelSelect
4343
@wheel="wheel"
4444
:teleported="false"
45+
@change="sttModelChange"
4546
v-model="form_data.stt_model_id"
4647
:placeholder="$t('views.application.form.voiceInput.placeholder')"
4748
:options="modelOptions"
@@ -192,9 +193,16 @@ const openSTTParamSettingDialog = () => {
192193
}
193194
194195
const refreshSTTForm = (data: any) => {
195-
form_data.value.model_params_setting = data
196+
set(props.nodeModel.properties.node_data, 'model_params_setting', data)
196197
}
197198
199+
function sttModelChange(model_id: string) {
200+
if (model_id) {
201+
STTModeParamSettingDialogRef.value?.reset_default(model_id, id)
202+
} else {
203+
refreshSTTForm({})
204+
}
205+
}
198206
199207
const application = getApplicationDetail()
200208
function getSelectModel() {

0 commit comments

Comments
 (0)