From 5488c950aa01ad0b11283857764b107ef6d627e1 Mon Sep 17 00:00:00 2001 From: LANYUN Date: Fri, 18 Jul 2025 17:01:40 +0800 Subject: [PATCH] feat: update provider.ts, add models (#8278) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix:修改地址,Update providers.ts * fix:修改地址,Update providers.ts * fix: 添加蓝耘模型列表 --- src/renderer/src/config/models.ts | 42 ++++++++++++++++++++++++++-- src/renderer/src/config/providers.ts | 8 +++--- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index b0390f5558..7ef6f45eba 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -185,7 +185,8 @@ const visionAllowedModels = [ 'kimi-latest', 'gemma-3(?:-[\\w-]+)', 'doubao-seed-1[.-]6(?:-[\\w-]+)?', - 'kimi-thinking-preview' + 'kimi-thinking-preview', + `gemma3(?:-[\\w-]+)` ] const visionExcludedModels = [ @@ -2242,7 +2243,44 @@ export const SYSTEM_MODELS: Record = { group: 'DeepSeek' } ], - lanyun: [], + lanyun: [ + { + id: '/maas/deepseek-ai/DeepSeek-R1-0528', + name: 'deepseek-ai/DeepSeek-R1', + provider: 'lanyun', + group: 'deepseek-ai' + }, + { + id: '/maas/deepseek-ai/DeepSeek-V3-0324', + name: 'deepseek-ai/DeepSeek-V3', + provider: 'lanyun', + group: 'deepseek-ai' + }, + { + id: '/maas/qwen/Qwen2.5-72B-Instruct', + provider: 'lanyun', + name: 'Qwen2.5-72B-Instruct', + group: 'Qwen' + }, + { + id: '/maas/qwen/Qwen3-235B-A22B', + name: 'Qwen/Qwen3-235B', + provider: 'lanyun', + group: 'Qwen' + }, + { + id: '/maas/minimax/MiniMax-M1-80k', + name: 'MiniMax-M1-80k', + provider: 'lanyun', + group: 'MiniMax' + }, + { + id: '/maas/google/Gemma3-27B', + name: 'Gemma3-27B', + provider: 'lanyun', + group: 'google' + } + ], 'new-api': [] } diff --git a/src/renderer/src/config/providers.ts b/src/renderer/src/config/providers.ts index 5feea21f08..f1b7f692f2 100644 --- a/src/renderer/src/config/providers.ts +++ b/src/renderer/src/config/providers.ts @@ -664,10 +664,10 @@ export const PROVIDER_CONFIG = { url: 'https://maas-api.lanyun.net' }, websites: { - official: 'https://lanyun.net', - apiKey: 'https://maas.lanyun.net/api/#/system/apiKey', - docs: 'https://archive.lanyun.net/maas/doc/', - models: 'https://maas.lanyun.net/api/#/model/modelSquare' + official: 'https://maas.lanyun.net', + apiKey: 'https://maas.lanyun.net/#/system/apiKey', + docs: 'https://archive.lanyun.net/#/maas/', + models: 'https://maas.lanyun.net/#/model/modelSquare' } }, vertexai: {