chore: 更新 provider 名称, Dashscope 更新为 Bailian
This commit is contained in:
parent
362d82bdcc
commit
3326074076
BIN
src/renderer/src/assets/images/providers/bailian.png
Normal file
BIN
src/renderer/src/assets/images/providers/bailian.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@ -695,22 +695,22 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
|
||||
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'
|
||||
}
|
||||
|
||||
@ -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: {
|
||||
|
||||
@ -169,7 +169,7 @@
|
||||
"groq": "Groq",
|
||||
"ollama": "Ollama",
|
||||
"baichuan": "Baichuan",
|
||||
"dashscope": "DashScope",
|
||||
"bailian": "Alibaba Cloud",
|
||||
"anthropic": "Anthropic",
|
||||
"aihubmix": "AiHubMix",
|
||||
"stepfun": "StepFun",
|
||||
|
||||
@ -169,7 +169,7 @@
|
||||
"groq": "Groq",
|
||||
"ollama": "Ollama",
|
||||
"baichuan": "百川",
|
||||
"dashscope": "阿里云灵积",
|
||||
"bailian": "阿里云百炼",
|
||||
"anthropic": "Anthropic",
|
||||
"aihubmix": "AiHubMix",
|
||||
"stepfun": "阶跃星辰",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -22,7 +22,7 @@ const persistedReducer = persistReducer(
|
||||
{
|
||||
key: 'cherry-studio',
|
||||
storage,
|
||||
version: 31,
|
||||
version: 32,
|
||||
blacklist: ['runtime'],
|
||||
migrate
|
||||
},
|
||||
|
||||
@ -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
|
||||
},
|
||||
|
||||
@ -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
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user