Skip to main content

Function: isModelFallbackError()

isModelFallbackError(error): boolean

Defined in: packages/core/src/runtime/failover.ts:33

Whether a failed model call should move to the next model: a retryable provider status (408/409/425/429/5xx/529 overloaded), AI SDK's retry exhaustion over one of those, an unknown or unauthorized model on that provider (another provider may serve the request), or a transport failure. Never an abort, a paused askHuman, or another 4xx (the next model would fail the same way).

Parameters​

error​

unknown

Returns​

boolean