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:
SuYao 2025-07-08 16:31:10 +08:00 committed by GitHub
parent 915291d780
commit f506a9d7ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -237,7 +237,7 @@ export const INITIAL_PROVIDERS: Provider[] = [
{
id: 'azure-openai',
name: 'Azure OpenAI',
type: 'openai',
type: 'azure-openai',
apiKey: '',
apiHost: '',
apiVersion: '',

View File

@ -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 = ''