Skip to content

Function: searchServingEndpoints()

searchServingEndpoints(input, endpoints, options?): object[]

Fuzzy-rank endpoints by how closely their name matches input, best (lowest score) first, keeping only those within threshold:

  1. An exact name match short-circuits to a single score: 0 result.
  2. Otherwise the shared TypeScript policy tokenizes and scores every endpoint through the same fuzzy-distance policy used by lookupModels.

Returns [] for an empty endpoint list or when input tokenizes to nothing, so callers fall back to the raw input and let Databricks surface a clean 404. This multi-result core is shared by resolveModelId (single best) and the ranked lookupModels selector.

string

readonly object[]

boolean = ...

number = ...

object[]