Skip to content

Commit

Permalink
fix: reranker embedding stt model show another empty
Browse files Browse the repository at this point in the history
--bug=1050861 --user=刘瑞斌 【模型管理】添加向量模型、重排模型时,高级设置中文案提示不对 https://www.tapd.cn/57709429/s/1637503
  • Loading branch information
liuruibin committed Dec 26, 2024
1 parent 6fab88e commit 7df98e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/views/template/component/CreateModelDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@
v-if="!base_form_data.model_type || !base_form_data.model_name"
description="请先选择基础信息的模型类型和基础模型"
/>
<el-empty
v-else-if="base_form_data.model_type === 'RERANKER' || base_form_data.model_type === 'EMBEDDING' || base_form_data.model_type === 'STT'"
description="所选模型不支持参数设置"
/>
<div class="flex-between mb-8" v-else>
<h5>模型参数</h5>
<el-button type="text" @click.stop="openAddDrawer()" :disabled="base_form_data.model_type !== 'TTS' && base_form_data.model_type !== 'LLM' && base_form_data.model_type !== 'IMAGE' && base_form_data.model_type !== 'TTI'">
Expand Down

0 comments on commit 7df98e2

Please sign in to comment.