fix: STT node

This commit is contained in:
zhangzhanwei 2025-09-26 15:44:15 +08:00 committed by zhanweizhang7
parent 8d4bad55f2
commit c073d0c665

View File

@ -42,6 +42,7 @@
<ModelSelect
@wheel="wheel"
:teleported="false"
@change="sttModelChange"
v-model="form_data.stt_model_id"
:placeholder="$t('views.application.form.voiceInput.placeholder')"
:options="modelOptions"
@ -192,9 +193,16 @@ const openSTTParamSettingDialog = () => {
}
const refreshSTTForm = (data: any) => {
form_data.value.model_params_setting = data
set(props.nodeModel.properties.node_data, 'model_params_setting', data)
}
function sttModelChange(model_id: string) {
if (model_id) {
STTModeParamSettingDialogRef.value?.reset_default(model_id, id)
} else {
refreshSTTForm({})
}
}
const application = getApplicationDetail()
function getSelectModel() {