Skip to content

discoverModelsWithProvenance

discoverModelsWithProvenance(providerId, options?): Promise<ModelDiscoveryResult>

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

CFG-21 — like discoverModels but also returns the model list’s ModelDiscoveryStatus provenance, so an interactive caller (the first-run dialog) can tell an honest “couldn’t reach the provider” degrade (fallback) apart from a by-design curated list (curated) and a real live catalog (live). Kept as a separate export so listModels / discoverModels keep their existing (providerId) => ModelInfo[] signatures other callers rely on.

Never throws for a discovery failure (that degrades to fallback); it only throws for an unknown provider id, mirroring discoverModels.

ProviderId

ModelDiscoveryOptions

Promise<ModelDiscoveryResult>