Function: rankModelId()
rankModelId(
endpoints,search,options?):ResolvedModel
Collapse rankModels to a single id: the closest endpoint to search
in a catalogue snapshot, or the input verbatim when nothing scores within the
threshold.
The rank-based counterpart to the Fuse-only resolveModelId: equal
match scores are broken by class and then within-class version, so a loose
"opus" prefers opus-5 over opus-4-7 instead of picking whichever
sibling Fuse happened to order first. Returning the input unmatched (rather
than a near neighbour) is deliberate - a deliberate endpoint id is never
silently rewritten, and Databricks surfaces a clean 404.
Parameters
Section titled “Parameters”endpoints
Section titled “endpoints”readonly object[]
search
Section titled “search”string
options?
Section titled “options?”ResolveModelOptions = {}