Skip to content

withFallbackProviders

function withFallbackProviders(providers, options?): FallbackProvider;

Defined in: core/src/fallback.ts:390

Compose bound provider/model pairs. Identity names the configured primary; chunk.source names the endpoint that answered. Per-call model overrides apply ONLY to the primary because model ids are endpoint-specific. Keep this provider alive across calls so its cooldowns survive.

Parameter Type
providers readonly Provider[]
options FallbackOptions<Provider>

FallbackProvider