fix(migrate): use provider apiHost for new-api (#11244)

fix(migrate): use provider apiHost for new-api case instead of hardcoded value
This commit is contained in:
Phantom 2025-11-12 10:05:21 +08:00 committed by GitHub
parent 31f8fff6e2
commit 803f4b5a64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2765,7 +2765,7 @@ const migrateConfig = {
provider.anthropicApiHost = 'https://aihubmix.com'
break
case 'new-api':
provider.anthropicApiHost = 'http://localhost:3000'
provider.anthropicApiHost = provider.apiHost
break
case 'grok':
provider.anthropicApiHost = 'https://api.x.ai'