Skip to content

getCuratedFallbackModel

getCuratedFallbackModel(providerId): string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/providers/modelDiscovery.ts:395

The single fallback source of truth for a provider’s default model id (CFG-14).

Returns the top curated ⭐ preferredModels entry for the provider — the one id that provider factories fall back to when a config carries no model, and the id first-run writes when live discovery is impossible. Centralising it here means the fallback lives in exactly ONE place (the curated registry above) instead of being duplicated as a literal in every providers/<id>.ts.

Every registered provider is required to carry at least one curated model, so this always resolves for a known id; it throws for an unknown provider or a provider whose preferredModels is empty (a developer error — the invariant that the fallback source is complete would otherwise fail silently).

ProviderId

string

the curated default model id (always defined for a known provider).