fix: DashScope upgrade

This commit is contained in:
kangfenmao 2024-10-14 09:26:22 +08:00
parent 3326074076
commit 75152421d9
8 changed files with 12 additions and 12 deletions

View File

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

View File

@ -46,7 +46,7 @@ export function getProviderLogo(providerId: string) {
return OpenRouterProviderLogo
case 'baichuan':
return BaichuanProviderLogo
case 'bailian':
case 'dashscope':
return BailianProviderLogo
case 'anthropic':
return AnthropicProviderLogo
@ -203,7 +203,7 @@ export const PROVIDER_CONFIG = {
models: 'https://platform.baichuan-ai.com/price'
}
},
bailian: {
dashscope: {
api: {
url: 'https://dashscope.aliyuncs.com/compatible-mode/v1/'
},

View File

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

View File

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

View File

@ -169,7 +169,7 @@
"groq": "Groq",
"ollama": "Ollama",
"baichuan": "百川",
"bailian": "阿里雲百鍊",
"dashscope": "阿里雲百鍊",
"anthropic": "Anthropic",
"aihubmix": "AiHubMix",
"stepfun": "StepFun",

View File

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

View File

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

View File

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