diff --git a/src/renderer/src/assets/images/providers/bailian.png b/src/renderer/src/assets/images/providers/bailian.png new file mode 100644 index 00000000..e144b1ef Binary files /dev/null and b/src/renderer/src/assets/images/providers/bailian.png differ diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index 9862791b..104612dd 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -695,22 +695,22 @@ export const SYSTEM_MODELS: Record = { group: 'Baichuan3' } ], - dashscope: [ + bailian: [ { id: 'qwen-turbo', - provider: 'dashscope', + provider: 'bailian', name: 'Qwen Turbo', group: 'Qwen' }, { id: 'qwen-plus', - provider: 'dashscope', + provider: 'bailian', name: 'Qwen Plus', group: 'Qwen' }, { id: 'qwen-max', - provider: 'dashscope', + provider: 'bailian', name: 'Qwen Max', group: 'Qwen' } diff --git a/src/renderer/src/config/providers.ts b/src/renderer/src/config/providers.ts index deb98e07..ce8cfe1f 100644 --- a/src/renderer/src/config/providers.ts +++ b/src/renderer/src/config/providers.ts @@ -3,8 +3,8 @@ import AzureProviderLogo from '@renderer/assets/images/models/microsoft.png' import AiHubMixProviderLogo from '@renderer/assets/images/providers/aihubmix.jpg' import AnthropicProviderLogo from '@renderer/assets/images/providers/anthropic.png' import BaichuanProviderLogo from '@renderer/assets/images/providers/baichuan.png' +import BailianProviderLogo from '@renderer/assets/images/providers/bailian.png' import BytedanceProviderLogo from '@renderer/assets/images/providers/bytedance.png' -import DashScopeProviderLogo from '@renderer/assets/images/providers/dashscope.png' import DeepSeekProviderLogo from '@renderer/assets/images/providers/deepseek.png' import FireworksProviderLogo from '@renderer/assets/images/providers/fireworks.png' import GithubProviderLogo from '@renderer/assets/images/providers/github.png' @@ -46,8 +46,8 @@ export function getProviderLogo(providerId: string) { return OpenRouterProviderLogo case 'baichuan': return BaichuanProviderLogo - case 'dashscope': - return DashScopeProviderLogo + case 'bailian': + return BailianProviderLogo case 'anthropic': return AnthropicProviderLogo case 'aihubmix': @@ -203,15 +203,15 @@ export const PROVIDER_CONFIG = { models: 'https://platform.baichuan-ai.com/price' } }, - dashscope: { + bailian: { api: { url: 'https://dashscope.aliyuncs.com/compatible-mode/v1/' }, websites: { - official: 'https://dashscope.aliyun.com/', - apiKey: 'https://help.aliyun.com/zh/dashscope/developer-reference/acquisition-and-configuration-of-api-key', - docs: 'https://help.aliyun.com/zh/dashscope/', - models: 'https://dashscope.console.aliyun.com/model' + official: 'https://www.aliyun.com/product/bailian', + apiKey: 'https://bailian.console.aliyun.com/?apiKey=1#/api-key', + docs: 'https://help.aliyun.com/zh/model-studio/getting-started/', + models: 'https://bailian.console.aliyun.com/model-market#/model-market' } }, stepfun: { diff --git a/src/renderer/src/i18n/en-us.json b/src/renderer/src/i18n/en-us.json index 53d0c3b0..74fabbbb 100644 --- a/src/renderer/src/i18n/en-us.json +++ b/src/renderer/src/i18n/en-us.json @@ -169,7 +169,7 @@ "groq": "Groq", "ollama": "Ollama", "baichuan": "Baichuan", - "dashscope": "DashScope", + "bailian": "Alibaba Cloud", "anthropic": "Anthropic", "aihubmix": "AiHubMix", "stepfun": "StepFun", diff --git a/src/renderer/src/i18n/zh-cn.json b/src/renderer/src/i18n/zh-cn.json index 499eee3d..5bd866a4 100644 --- a/src/renderer/src/i18n/zh-cn.json +++ b/src/renderer/src/i18n/zh-cn.json @@ -169,7 +169,7 @@ "groq": "Groq", "ollama": "Ollama", "baichuan": "百川", - "dashscope": "阿里云灵积", + "bailian": "阿里云百炼", "anthropic": "Anthropic", "aihubmix": "AiHubMix", "stepfun": "阶跃星辰", diff --git a/src/renderer/src/i18n/zh-tw.json b/src/renderer/src/i18n/zh-tw.json index b2a01cad..8a30dfb2 100644 --- a/src/renderer/src/i18n/zh-tw.json +++ b/src/renderer/src/i18n/zh-tw.json @@ -164,12 +164,12 @@ "moonshot": "月之暗面", "silicon": "SiliconFlow", "openrouter": "OpenRouter", - "yi": "零一万物", - "zhipu": "智谱AI", + "yi": "零一萬物", + "zhipu": "智譜AI", "groq": "Groq", "ollama": "Ollama", "baichuan": "百川", - "dashscope": "DashScope", + "bailian": "阿里雲百鍊", "anthropic": "Anthropic", "aihubmix": "AiHubMix", "stepfun": "StepFun", diff --git a/src/renderer/src/store/index.ts b/src/renderer/src/store/index.ts index 977dc189..7df481a8 100644 --- a/src/renderer/src/store/index.ts +++ b/src/renderer/src/store/index.ts @@ -22,7 +22,7 @@ const persistedReducer = persistReducer( { key: 'cherry-studio', storage, - version: 31, + version: 32, blacklist: ['runtime'], migrate }, diff --git a/src/renderer/src/store/llm.ts b/src/renderer/src/store/llm.ts index d7012b01..94df76f9 100644 --- a/src/renderer/src/store/llm.ts +++ b/src/renderer/src/store/llm.ts @@ -142,11 +142,11 @@ const initialState: LlmState = { enabled: false }, { - id: 'dashscope', - name: 'DashScope', + id: 'bailian', + name: 'Bailian', apiKey: '', apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/', - models: SYSTEM_MODELS.dashscope, + models: SYSTEM_MODELS.bailian, isSystem: true, enabled: false }, diff --git a/src/renderer/src/store/migrate.ts b/src/renderer/src/store/migrate.ts index 453e405b..98288dea 100644 --- a/src/renderer/src/store/migrate.ts +++ b/src/renderer/src/store/migrate.ts @@ -178,11 +178,11 @@ const migrateConfig = { providers: [ ...state.llm.providers, { - id: 'dashscope', - name: 'DashScope', + id: 'bailian', + name: 'Bailian', apiKey: '', apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/', - models: SYSTEM_MODELS.dashscope, + models: SYSTEM_MODELS.bailian, isSystem: true, enabled: false },