mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-05 20:41:30 +08:00
fix: merge migration versions
This commit is contained in:
parent
a605ae6043
commit
6d92539524
@ -326,7 +326,7 @@ export const PROVIDER_CONFIG = {
|
|||||||
models: 'https://ai.360.com/platform/limit'
|
models: 'https://ai.360.com/platform/limit'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
navida: {
|
nvidia: {
|
||||||
api: {
|
api: {
|
||||||
url: 'https://integrate.api.nvidia.com'
|
url: 'https://integrate.api.nvidia.com'
|
||||||
},
|
},
|
||||||
|
|||||||
@ -455,67 +455,34 @@ const migrateConfig = {
|
|||||||
name: 'Together',
|
name: 'Together',
|
||||||
apiKey: '',
|
apiKey: '',
|
||||||
apiHost: 'https://api.together.xyz',
|
apiHost: 'https://api.together.xyz',
|
||||||
models: [],
|
models: SYSTEM_MODELS.together,
|
||||||
isSystem: true,
|
isSystem: true,
|
||||||
enabled: false
|
enabled: false
|
||||||
}
|
},
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'29': (state: RootState) => {
|
|
||||||
return {
|
|
||||||
...state,
|
|
||||||
llm: {
|
|
||||||
...state.llm,
|
|
||||||
providers: [
|
|
||||||
...state.llm.providers,
|
|
||||||
{
|
{
|
||||||
id: 'fireworks',
|
id: 'fireworks',
|
||||||
name: 'Fireworks',
|
name: 'Fireworks',
|
||||||
apiKey: '',
|
apiKey: '',
|
||||||
apiHost: 'https://api.fireworks.ai/inference',
|
apiHost: 'https://api.fireworks.ai/inference',
|
||||||
models: [],
|
models: SYSTEM_MODELS.fireworks,
|
||||||
isSystem: true,
|
isSystem: true,
|
||||||
enabled: false
|
enabled: false
|
||||||
}
|
},
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'30': (state: RootState) => {
|
|
||||||
return {
|
|
||||||
...state,
|
|
||||||
llm: {
|
|
||||||
...state.llm,
|
|
||||||
providers: [
|
|
||||||
...state.llm.providers,
|
|
||||||
{
|
{
|
||||||
id: 'zhinao',
|
id: 'zhinao',
|
||||||
name: 'zhinao',
|
name: 'zhinao',
|
||||||
apiKey: '',
|
apiKey: '',
|
||||||
apiHost: 'https://api.360.cn',
|
apiHost: 'https://api.360.cn',
|
||||||
models: [],
|
models: SYSTEM_MODELS.zhinao,
|
||||||
isSystem: true,
|
isSystem: true,
|
||||||
enabled: false
|
enabled: false
|
||||||
}
|
},
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'31': (state: RootState) => {
|
|
||||||
return {
|
|
||||||
...state,
|
|
||||||
llm: {
|
|
||||||
...state.llm,
|
|
||||||
providers: [
|
|
||||||
...state.llm.providers,
|
|
||||||
{
|
{
|
||||||
id: 'nvidia',
|
id: 'nvidia',
|
||||||
name: 'nvidia',
|
name: 'Nvidia',
|
||||||
apiKey: '',
|
apiKey: '',
|
||||||
apiHost: 'https://integrate.api.nvidia.com',
|
apiHost: 'https://integrate.api.nvidia.com',
|
||||||
models: [],
|
models: SYSTEM_MODELS.nvidia,
|
||||||
isSystem: true,
|
isSystem: true,
|
||||||
enabled: false
|
enabled: false
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user