mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 13:39:52 +00:00
wip: zen
This commit is contained in:
parent
d723147083
commit
d82d22b2d7
1 changed files with 2 additions and 1 deletions
|
|
@ -390,7 +390,8 @@ export async function handler(
|
|||
}
|
||||
|
||||
if (retry.retryCount === MAX_FAILOVER_RETRIES) {
|
||||
return modelInfo.providers.find((provider) => provider.id === modelInfo.fallbackProvider)
|
||||
const provider = modelInfo.providers.find((provider) => provider.id === modelInfo.fallbackProvider)
|
||||
if (provider) return provider
|
||||
}
|
||||
|
||||
const providers = modelInfo.providers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue