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.
Parameters
Section titled “Parameters”providerId
Section titled “providerId”models
Section titled “models”readonly object[]
options?
Section titled “options?”CatalogOptions = {}
Returns
Section titled “Returns”Promise<EnrichedModel[]>