fix: merge migration versions

This commit is contained in:
kangfenmao 2024-09-30 13:37:55 +08:00
parent a605ae6043
commit 6d92539524
2 changed files with 9 additions and 42 deletions

View File

@ -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'
}, },

View File

@ -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
} }