fix: DashScope upgrade
This commit is contained in:
parent
3326074076
commit
75152421d9
@ -698,19 +698,19 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
|
|||||||
bailian: [
|
bailian: [
|
||||||
{
|
{
|
||||||
id: 'qwen-turbo',
|
id: 'qwen-turbo',
|
||||||
provider: 'bailian',
|
provider: 'dashscope',
|
||||||
name: 'Qwen Turbo',
|
name: 'Qwen Turbo',
|
||||||
group: 'Qwen'
|
group: 'Qwen'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'qwen-plus',
|
id: 'qwen-plus',
|
||||||
provider: 'bailian',
|
provider: 'dashscope',
|
||||||
name: 'Qwen Plus',
|
name: 'Qwen Plus',
|
||||||
group: 'Qwen'
|
group: 'Qwen'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'qwen-max',
|
id: 'qwen-max',
|
||||||
provider: 'bailian',
|
provider: 'dashscope',
|
||||||
name: 'Qwen Max',
|
name: 'Qwen Max',
|
||||||
group: 'Qwen'
|
group: 'Qwen'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export function getProviderLogo(providerId: string) {
|
|||||||
return OpenRouterProviderLogo
|
return OpenRouterProviderLogo
|
||||||
case 'baichuan':
|
case 'baichuan':
|
||||||
return BaichuanProviderLogo
|
return BaichuanProviderLogo
|
||||||
case 'bailian':
|
case 'dashscope':
|
||||||
return BailianProviderLogo
|
return BailianProviderLogo
|
||||||
case 'anthropic':
|
case 'anthropic':
|
||||||
return AnthropicProviderLogo
|
return AnthropicProviderLogo
|
||||||
@ -203,7 +203,7 @@ export const PROVIDER_CONFIG = {
|
|||||||
models: 'https://platform.baichuan-ai.com/price'
|
models: 'https://platform.baichuan-ai.com/price'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
bailian: {
|
dashscope: {
|
||||||
api: {
|
api: {
|
||||||
url: 'https://dashscope.aliyuncs.com/compatible-mode/v1/'
|
url: 'https://dashscope.aliyuncs.com/compatible-mode/v1/'
|
||||||
},
|
},
|
||||||
|
|||||||
@ -169,7 +169,7 @@
|
|||||||
"groq": "Groq",
|
"groq": "Groq",
|
||||||
"ollama": "Ollama",
|
"ollama": "Ollama",
|
||||||
"baichuan": "Baichuan",
|
"baichuan": "Baichuan",
|
||||||
"bailian": "Alibaba Cloud",
|
"dashscope": "Alibaba Cloud",
|
||||||
"anthropic": "Anthropic",
|
"anthropic": "Anthropic",
|
||||||
"aihubmix": "AiHubMix",
|
"aihubmix": "AiHubMix",
|
||||||
"stepfun": "StepFun",
|
"stepfun": "StepFun",
|
||||||
|
|||||||
@ -169,7 +169,7 @@
|
|||||||
"groq": "Groq",
|
"groq": "Groq",
|
||||||
"ollama": "Ollama",
|
"ollama": "Ollama",
|
||||||
"baichuan": "百川",
|
"baichuan": "百川",
|
||||||
"bailian": "阿里云百炼",
|
"dashscope": "阿里云百炼",
|
||||||
"anthropic": "Anthropic",
|
"anthropic": "Anthropic",
|
||||||
"aihubmix": "AiHubMix",
|
"aihubmix": "AiHubMix",
|
||||||
"stepfun": "阶跃星辰",
|
"stepfun": "阶跃星辰",
|
||||||
|
|||||||
@ -169,7 +169,7 @@
|
|||||||
"groq": "Groq",
|
"groq": "Groq",
|
||||||
"ollama": "Ollama",
|
"ollama": "Ollama",
|
||||||
"baichuan": "百川",
|
"baichuan": "百川",
|
||||||
"bailian": "阿里雲百鍊",
|
"dashscope": "阿里雲百鍊",
|
||||||
"anthropic": "Anthropic",
|
"anthropic": "Anthropic",
|
||||||
"aihubmix": "AiHubMix",
|
"aihubmix": "AiHubMix",
|
||||||
"stepfun": "StepFun",
|
"stepfun": "StepFun",
|
||||||
|
|||||||
@ -22,7 +22,7 @@ const persistedReducer = persistReducer(
|
|||||||
{
|
{
|
||||||
key: 'cherry-studio',
|
key: 'cherry-studio',
|
||||||
storage,
|
storage,
|
||||||
version: 32,
|
version: 31,
|
||||||
blacklist: ['runtime'],
|
blacklist: ['runtime'],
|
||||||
migrate
|
migrate
|
||||||
},
|
},
|
||||||
|
|||||||
@ -142,7 +142,7 @@ const initialState: LlmState = {
|
|||||||
enabled: false
|
enabled: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'bailian',
|
id: 'dashscope',
|
||||||
name: 'Bailian',
|
name: 'Bailian',
|
||||||
apiKey: '',
|
apiKey: '',
|
||||||
apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/',
|
apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/',
|
||||||
|
|||||||
@ -178,8 +178,8 @@ const migrateConfig = {
|
|||||||
providers: [
|
providers: [
|
||||||
...state.llm.providers,
|
...state.llm.providers,
|
||||||
{
|
{
|
||||||
id: 'bailian',
|
id: 'dashscope',
|
||||||
name: 'Bailian',
|
name: 'DashScope',
|
||||||
apiKey: '',
|
apiKey: '',
|
||||||
apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/',
|
apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1/',
|
||||||
models: SYSTEM_MODELS.bailian,
|
models: SYSTEM_MODELS.bailian,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user