Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions ui/src/constants/model.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export const MODEL_TYPE_LABELS: Record<string, string> = {
LLM: 'AI 模型',
LLM: '大语言模型',
EMBEDDING: '向量模型',
IMAGE: '视觉模型',
ITV: '图生视频模型',
STT: '语音识别模型',
TTI: '图片生成模型',
TTS: '语音合成模型',
TTV: '文生视频模型',
RERANKER: '重排模型',
STT: '语音识别',
TTS: '语音合成',
IMAGE: '视觉模型',
TTI: '图片生成',
ITV: '图生视频',
TTV: '文生视频',
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import { MODEL_TYPE_LABELS } from '@/constants/model'
defineOptions({ name: 'DefaultModelSettingDrawer' })

const defaultModelTypes = ['LLM', 'TTS', 'STT', 'IMAGE', 'TTI', 'TTV', 'ITV', 'RERANKER'] as const
const defaultModelTypeLabels: Record<string, string> = {
...MODEL_TYPE_LABELS,
LLM: 'AI 模型',
}

const props = defineProps<{
modelValue?: DefaultModelSettingPayload
Expand Down Expand Up @@ -231,7 +235,7 @@ defineExpose({ open })
</template>

<el-form v-loading="loading" label-position="top" require-asterisk-position="right" @submit.prevent>
<el-form-item v-for="modelType in defaultModelTypes" :key="modelType" :label="MODEL_TYPE_LABELS[modelType]">
<el-form-item v-for="modelType in defaultModelTypes" :key="modelType" :label="defaultModelTypeLabels[modelType]">
<SelectModel
teleported
v-model="modelSettings[modelType].model_id"
Expand Down
Loading