From cb5f94b1971c2d51066701f5f77625538cdebf35 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期五, 27 六月 2025 09:02:51 +0800 Subject: [PATCH] 修改模型查询接口ModelApi.getModelSimpleList --- src/views/ai/utils/constants.ts | 41 +++++++++++++++-------------------------- 1 files changed, 15 insertions(+), 26 deletions(-) diff --git a/src/views/ai/utils/constants.ts b/src/views/ai/utils/constants.ts index 8888662..713862a 100644 --- a/src/views/ai/utils/constants.ts +++ b/src/views/ai/utils/constants.ts @@ -1,5 +1,5 @@ /** - * Created by iailab + * Created by 工业互联网平台 * * AI 枚举类 * @@ -16,11 +16,21 @@ DEEP_SEEK: 'DeepSeek', // DeepSeek ZHI_PU: 'ZhiPu', // 智谱 AI XING_HUO: 'XingHuo', // 讯飞 + SiliconFlow: 'SiliconFlow', // 硅基流动 OPENAI: 'OpenAI', Ollama: 'Ollama', STABLE_DIFFUSION: 'StableDiffusion', // Stability AI MIDJOURNEY: 'Midjourney', // Midjourney SUNO: 'Suno' // Suno AI +} + +export const AiModelTypeEnum = { + CHAT: '1', // 聊天 + IMAGE: '2', // 图像 + VOICE: '3', // 音频 + VIDEO: '4', // 视频 + EMBEDDING: '5', // 向量 + LLM: '6' // 重排 } export const OtherPlatformEnum: ImageModelVO[] = [ @@ -35,6 +45,10 @@ { key: AiPlatformEnum.ZHI_PU, name: '智谱 AI' + }, + { + key: AiPlatformEnum.SiliconFlow, + name: '硅基流动' } ] @@ -208,31 +222,6 @@ { key: 'tile-texture', name: 'tile-texture' - } -] - -export const TongYiWanXiangModels: ImageModelVO[] = [ - { - key: 'wanx-v1', - name: 'wanx-v1' - }, - { - key: 'wanx-sketch-to-image-v1', - name: 'wanx-sketch-to-image-v1' - } -] - -export const QianFanModels: ImageModelVO[] = [ - { - key: 'sd_xl', - name: 'sd_xl' - } -] - -export const ChatGlmModels: ImageModelVO[] = [ - { - key: 'cogview-3', - name: 'cogview-3' } ] -- Gitblit v1.9.3