Skip to content

Function: resolveModelId()

resolveModelId(input, endpoints, options?): ResolvedModel

Snap a user-supplied model name to the single closest configured serving endpoint via searchServingEndpoints. Returns the input unchanged with matched: false when nothing scores within the threshold (or the catalogue is empty), so a deliberate model id is never silently rewritten to a similar-looking neighbour and the upstream call surfaces the canonical 404.

string

readonly object[]

ResolveModelOptions = {}

ResolvedModel