From f84c0f2de793be5dac3bda0e952afe14c625f596 Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期四, 26 六月 2025 16:35:28 +0800 Subject: [PATCH] ai模型绑定 --- 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..580c676 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, // 向量 + RERANK: 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