From 69940e27809d55640f40054afa3a2d9db646dc8c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 13 Jul 2024 00:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E8=AF=84=E5=AE=A1?= =?UTF-8?q?=E3=80=91AI=EF=BC=9A=E7=BB=98=E5=9B=BE=20other=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ai/image/index/components/other/index.vue | 38 ++++++------ src/views/ai/image/index/index.vue | 3 +- src/views/ai/utils/constants.ts | 60 ++----------------- 3 files changed, 24 insertions(+), 77 deletions(-) diff --git a/src/views/ai/image/index/components/other/index.vue b/src/views/ai/image/index/components/other/index.vue index 352333db..a688be18 100644 --- a/src/views/ai/image/index/components/other/index.vue +++ b/src/views/ai/image/index/components/other/index.vue @@ -36,7 +36,13 @@ 平台 - + - + -
+
图片尺寸
@@ -77,9 +78,10 @@
diff --git a/src/views/ai/utils/constants.ts b/src/views/ai/utils/constants.ts index 3c886389..483f782e 100644 --- a/src/views/ai/utils/constants.ts +++ b/src/views/ai/utils/constants.ts @@ -20,11 +20,10 @@ export const AiPlatformEnum = { Ollama: 'Ollama', STABLE_DIFFUSION: 'StableDiffusion', // Stability AI MIDJOURNEY: 'Midjourney', // Midjourney - SUNO: 'Suno', // Suno AI - CHATGLM: 'ChatGlm', // ChatGlm + SUNO: 'Suno' // Suno AI } -export const OtherPlatformEnum:ImageModelVO [] = [ +export const OtherPlatformEnum: ImageModelVO[] = [ { key: AiPlatformEnum.TONG_YI, name: '通义万相' @@ -34,8 +33,8 @@ export const OtherPlatformEnum:ImageModelVO [] = [ name: '百度千帆' }, { - key: AiPlatformEnum.CHATGLM, - name: '智铺 ChatGlm' + key: AiPlatformEnum.ZHI_PU, + name: '智谱 AI' } ] @@ -205,54 +204,6 @@ export const StableDiffusionStylePresets: ImageModelVO[] = [ } ] -// todo @芋艿 这些是通义的风格,看要不要删除 -export const TongYiWanXiangStylePresets: ImageModelVO[] = [ - { - key: '-1', - name: '上传图像风格' - }, - { - key: '0', - name: '复古漫画' - }, - { - key: '1', - name: '3D童话' - }, - { - key: '2', - name: '二次元' - }, - { - key: '3', - name: '小清新' - }, - { - key: '4', - name: '未来科技' - }, - { - key: '5', - name: '国画古风' - }, - { - key: '6', - name: '将军百战' - }, - { - key: '7', - name: '炫彩卡通' - }, - { - key: '8', - name: '清雅国风' - }, - { - key: '9', - name: '喜迎新年' - } -] - export const TongYiWanXiangModels: ImageModelVO[] = [ { key: 'wanx-v1', @@ -278,7 +229,6 @@ export const ChatGlmModels: ImageModelVO[] = [ } ] - export const StableDiffusionClipGuidancePresets: ImageModelVO[] = [ { key: 'NONE', @@ -338,7 +288,7 @@ export const Dall3StyleList: ImageModelVO[] = [ export interface ImageSizeVO { key: string - name: string + name?: string style: string width: string height: string