fix(migrate): normalize provider type for AI gateway (#11703)

This commit is contained in:
SuYao 2025-12-05 17:42:44 +08:00 committed by GitHub
parent 968210faa7
commit 9d6d827f88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2945,6 +2945,10 @@ const migrateConfig = {
model.provider = SystemProviderIds.gateway
}
})
// @ts-ignore
if (provider.type === 'ai-gateway') {
provider.type = 'gateway'
}
})
logger.info('migrate 181 success')
return state