chore: 更新 provider 名称, Dashscope 更新为 Bailian

This commit is contained in:
1355873789 2024-10-12 23:38:56 +08:00 committed by 亢奋猫
parent 362d82bdcc
commit 3326074076
9 changed files with 24 additions and 24 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -695,22 +695,22 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
group: 'Baichuan3' group: 'Baichuan3'
} }
], ],
dashscope: [ bailian: [
{ {
id: 'qwen-turbo', id: 'qwen-turbo',
provider: 'dashscope', provider: 'bailian',
name: 'Qwen Turbo', name: 'Qwen Turbo',
group: 'Qwen' group: 'Qwen'
}, },
{ {
id: 'qwen-plus', id: 'qwen-plus',
provider: 'dashscope', provider: 'bailian',
name: 'Qwen Plus', name: 'Qwen Plus',
group: 'Qwen' group: 'Qwen'
}, },
{ {
id: 'qwen-max', id: 'qwen-max',
provider: 'dashscope', provider: 'bailian',
name: 'Qwen Max', name: 'Qwen Max',
group: 'Qwen' group: 'Qwen'
} }

View File

@ -3,8 +3,8 @@ import AzureProviderLogo from '@renderer/assets/images/models/microsoft.png'
import AiHubMixProviderLogo from '@renderer/assets/images/providers/aihubmix.jpg' import AiHubMixProviderLogo from '@renderer/assets/images/providers/aihubmix.jpg'
import AnthropicProviderLogo from '@renderer/assets/images/providers/anthropic.png' import AnthropicProviderLogo from '@renderer/assets/images/providers/anthropic.png'
import BaichuanProviderLogo from '@renderer/assets/images/providers/baichuan.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 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 DeepSeekProviderLogo from '@renderer/assets/images/providers/deepseek.png'
import FireworksProviderLogo from '@renderer/assets/images/providers/fireworks.png' import FireworksProviderLogo from '@renderer/assets/images/providers/fireworks.png'
import GithubProviderLogo from '@renderer/assets/images/providers/github.png' import GithubProviderLogo from '@renderer/assets/images/providers/github.png'
@ -46,8 +46,8 @@ export function getProviderLogo(providerId: string) {
return OpenRouterProviderLogo return OpenRouterProviderLogo
case 'baichuan': case 'baichuan':
return BaichuanProviderLogo return BaichuanProviderLogo
case 'dashscope': case 'bailian':
return DashScopeProviderLogo return BailianProviderLogo
case 'anthropic': case 'anthropic':
return AnthropicProviderLogo return AnthropicProviderLogo
case 'aihubmix': case 'aihubmix':
@ -203,15 +203,15 @@ export const PROVIDER_CONFIG = {
models: 'https://platform.baichuan-ai.com/price' models: 'https://platform.baichuan-ai.com/price'
} }
}, },
dashscope: { bailian: {
api: { api: {
url: 'https://dashscope.aliyuncs.com/compatible-mode/v1/' url: 'https://dashscope.aliyuncs.com/compatible-mode/v1/'
}, },
websites: { websites: {
official: 'https://dashscope.aliyun.com/', official: 'https://www.aliyun.com/product/bailian',
apiKey: 'https://help.aliyun.com/zh/dashscope/developer-reference/acquisition-and-configuration-of-api-key', apiKey: 'https://bailian.console.aliyun.com/?apiKey=1#/api-key',
docs: 'https://help.aliyun.com/zh/dashscope/', docs: 'https://help.aliyun.com/zh/model-studio/getting-started/',
models: 'https://dashscope.console.aliyun.com/model' models: 'https://bailian.console.aliyun.com/model-market#/model-market'
} }
}, },
stepfun: { stepfun: {

View File

@ -169,7 +169,7 @@
"groq": "Groq", "groq": "Groq",
"ollama": "Ollama", "ollama": "Ollama",
"baichuan": "Baichuan", "baichuan": "Baichuan",
"dashscope": "DashScope", "bailian": "Alibaba Cloud",
"anthropic": "Anthropic", "anthropic": "Anthropic",
"aihubmix": "AiHubMix", "aihubmix": "AiHubMix",
"stepfun": "StepFun", "stepfun": "StepFun",

View File

@ -169,7 +169,7 @@
"groq": "Groq", "groq": "Groq",
"ollama": "Ollama", "ollama": "Ollama",
"baichuan": "百川", "baichuan": "百川",
"dashscope": "阿里云灵积", "bailian": "阿里云百炼",
"anthropic": "Anthropic", "anthropic": "Anthropic",
"aihubmix": "AiHubMix", "aihubmix": "AiHubMix",
"stepfun": "阶跃星辰", "stepfun": "阶跃星辰",

View File

@ -164,12 +164,12 @@
"moonshot": "月之暗面", "moonshot": "月之暗面",
"silicon": "SiliconFlow", "silicon": "SiliconFlow",
"openrouter": "OpenRouter", "openrouter": "OpenRouter",
"yi": "零一物", "yi": "零一物",
"zhipu": "智AI", "zhipu": "智AI",
"groq": "Groq", "groq": "Groq",
"ollama": "Ollama", "ollama": "Ollama",
"baichuan": "百川", "baichuan": "百川",
"dashscope": "DashScope", "bailian": "阿里雲百鍊",
"anthropic": "Anthropic", "anthropic": "Anthropic",
"aihubmix": "AiHubMix", "aihubmix": "AiHubMix",
"stepfun": "StepFun", "stepfun": "StepFun",

View File

@ -22,7 +22,7 @@ const persistedReducer = persistReducer(
{ {
key: 'cherry-studio', key: 'cherry-studio',
storage, storage,
version: 31, version: 32,
blacklist: ['runtime'], blacklist: ['runtime'],
migrate migrate
}, },

View File

@ -142,11 +142,11 @@ const initialState: LlmState = {
enabled: false enabled: false
}, },
{ {
id: 'dashscope', id: 'bailian',
name: 'DashScope', name: 'Bailian',
apiKey: '', apiKey: '',
apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/', apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/',
models: SYSTEM_MODELS.dashscope, models: SYSTEM_MODELS.bailian,
isSystem: true, isSystem: true,
enabled: false enabled: false
}, },

View File

@ -178,11 +178,11 @@ const migrateConfig = {
providers: [ providers: [
...state.llm.providers, ...state.llm.providers,
{ {
id: 'dashscope', id: 'bailian',
name: 'DashScope', name: 'Bailian',
apiKey: '', apiKey: '',
apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/', apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/',
models: SYSTEM_MODELS.dashscope, models: SYSTEM_MODELS.bailian,
isSystem: true, isSystem: true,
enabled: false enabled: false
}, },