File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
ui/src/workflow/nodes/speech-to-text-node Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 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
194195const 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
199207const application = getApplicationDetail ()
200208function getSelectModel() {
You can’t perform that action at this time.
0 commit comments