mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 10:40:07 +08:00
fix(migrate): normalize provider type for AI gateway (#11703)
This commit is contained in:
parent
968210faa7
commit
9d6d827f88
@ -2945,6 +2945,10 @@ const migrateConfig = {
|
|||||||
model.provider = SystemProviderIds.gateway
|
model.provider = SystemProviderIds.gateway
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// @ts-ignore
|
||||||
|
if (provider.type === 'ai-gateway') {
|
||||||
|
provider.type = 'gateway'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
logger.info('migrate 181 success')
|
logger.info('migrate 181 success')
|
||||||
return state
|
return state
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user