Skip to content

enrichModels

enrichModels(providerId, models, options?): Promise<EnrichedModel[]>

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

Enrich a provider’s discovered model list with catalog metadata, cache-first.

/v1/models stays authoritative: every input model is returned, in order, whether or not models.dev knows it. Matched ids gain an enrichment; unmatched ids (and every model when the catalog is unavailable or the provider is local) are returned untouched. NEVER throws.

ProviderId

readonly object[]

CatalogOptions = {}

Promise<EnrichedModel[]>