Skip to content

ModelDiscoveryStatus

ModelDiscoveryStatus = "live" | "fallback" | "curated"

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

Provenance of a returned model list (CFG-21). Distinguishes the three outcomes so an interactive caller can tell an honest “couldn’t reach the provider” degrade apart from a by-design curated list:

  • live — a successful, non-empty live /v1/models query.
  • fallback — a live query WAS attempted (key present / ollama probed) but failed: network error/timeout, non-2xx, or an empty/malformed payload. THIS is the “couldn’t reach” case the first-run dialog surfaces.
  • curated — no live query was attempted, by design: a kind:'none' provider (vertexai) or a cloud provider with no API key present. The curated catalog is the expected result here, NOT a degrade, so the dialog must NOT show a “couldn’t reach” notice for it.