mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 20:00:00 +08:00
fix(provider): fix azure type (#7926)
* fix(provider): fix azure type * fix: lint --------- Co-authored-by: George·Dong <98630204+GeorgeDong32@users.noreply.github.com>
This commit is contained in:
parent
915291d780
commit
f506a9d7ac
@ -237,7 +237,7 @@ export const INITIAL_PROVIDERS: Provider[] = [
|
||||
{
|
||||
id: 'azure-openai',
|
||||
name: 'Azure OpenAI',
|
||||
type: 'openai',
|
||||
type: 'azure-openai',
|
||||
apiKey: '',
|
||||
apiHost: '',
|
||||
apiVersion: '',
|
||||
|
||||
@ -1748,6 +1748,12 @@ const migrateConfig = {
|
||||
if (newLang) state.settings.targetLanguage = newLang
|
||||
else state.settings.targetLanguage = 'en-us'
|
||||
|
||||
state.llm.providers.forEach((provider) => {
|
||||
if (provider.id === 'azure-openai') {
|
||||
provider.type = 'azure-openai'
|
||||
}
|
||||
})
|
||||
|
||||
state.settings.localBackupMaxBackups = 0
|
||||
state.settings.localBackupSkipBackupFile = false
|
||||
state.settings.localBackupDir = ''
|
||||
|
||||
Loading…
Reference in New Issue
Block a user