From 7cea14963a13d744c5c5832374f4622c162cdd49 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Wed, 28 Oct 2026 10:36:46 +0800 Subject: [PATCH] fix: model text --- ui/src/constants/model.ts | 14 +++++++------- .../DefaultModelSettingDrawer.vue | 6 +++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ui/src/constants/model.ts b/ui/src/constants/model.ts index 26193938a03..7618b56ffa8 100644 --- a/ui/src/constants/model.ts +++ b/ui/src/constants/model.ts @@ -1,11 +1,11 @@ export const MODEL_TYPE_LABELS: Record = { - LLM: 'AI 模型', + LLM: '大语言模型', EMBEDDING: '向量模型', - IMAGE: '视觉模型', - ITV: '图生视频模型', - STT: '语音识别模型', - TTI: '图片生成模型', - TTS: '语音合成模型', - TTV: '文生视频模型', RERANKER: '重排模型', + STT: '语音识别', + TTS: '语音合成', + IMAGE: '视觉模型', + TTI: '图片生成', + ITV: '图生视频', + TTV: '文生视频', } diff --git a/ui/src/views/workflow/components/default-model-setting/DefaultModelSettingDrawer.vue b/ui/src/views/workflow/components/default-model-setting/DefaultModelSettingDrawer.vue index 837e187874b..63ef85ca74d 100644 --- a/ui/src/views/workflow/components/default-model-setting/DefaultModelSettingDrawer.vue +++ b/ui/src/views/workflow/components/default-model-setting/DefaultModelSettingDrawer.vue @@ -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 = { + ...MODEL_TYPE_LABELS, + LLM: 'AI 模型', +} const props = defineProps<{ modelValue?: DefaultModelSettingPayload @@ -231,7 +235,7 @@ defineExpose({ open }) - +