mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: STT node
This commit is contained in:
parent
8d4bad55f2
commit
c073d0c665
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue