Skip to content

Commit 2a3dcd2

Browse files
committed
fix: STT model params add when create
1 parent 2df99de commit 2a3dcd2

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

ui/src/views/model/component/CreateModelDialog.vue

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@
139139
<el-empty
140140
v-else-if="
141141
base_form_data.model_type === 'RERANKER' ||
142-
base_form_data.model_type === 'EMBEDDING' ||
143-
base_form_data.model_type === 'STT'
142+
base_form_data.model_type === 'EMBEDDING'
144143
"
145144
:description="$t('views.model.tip.emptyMessage2')"
146145
/>
@@ -149,14 +148,7 @@
149148
<el-button
150149
type="text"
151150
@click.stop="openAddDrawer()"
152-
:disabled="
153-
base_form_data.model_type !== 'TTS' &&
154-
base_form_data.model_type !== 'LLM' &&
155-
base_form_data.model_type !== 'IMAGE' &&
156-
base_form_data.model_type !== 'TTI' &&
157-
base_form_data.model_type !== 'TTV' &&
158-
base_form_data.model_type !== 'ITV'
159-
"
151+
:disabled="!['TTS', 'LLM', 'IMAGE', 'TTI', 'TTV', 'ITV','STT'].includes(base_form_data.model_type)"
160152
>
161153
<AppIcon iconName="app-add-outlined" class="mr-4"/> {{ $t('common.add') }}
162154
</el-button>

0 commit comments

Comments
 (0)