Skip to content

Function: resolveModel()

resolveModel(endpoints, input?): ResolvedModelSelection

Resolve a single model id from the live catalogue and caller intent, delegating the live selection to rankModels with limit: 1.

  1. Explicit ask: with fuzzy off, returned verbatim; otherwise fuzzy-ranked within the (optional) class ceiling and the best taken, falling back to the input verbatim when nothing matches.
  2. No explicit ask: an operator-pinned fallback that exists in the live catalogue wins first; then the ranked live catalogue (class ceiling applied); then the static FALLBACK_MODEL_IDS floor when the catalogue yields nothing in range.

readonly object[]

ResolveModelInput = {}

ResolvedModelSelection