Skip to content

Function: searchModels()

searchModels(client, host, input?): Promise<object[]>

Rank a workspace’s catalogue in one call: list its /serving-endpoints (cached) and run rankModels over the result. The list counterpart to selectModel, for a consumer that wants the full ranked set (a model picker, a CLI) rather than a single id. Catalogue fetches fail loud: network / auth errors propagate so the caller sees the real SDK message.

WorkspaceClientLike

string

Workspace host used as the cache key. Pass the value resolved from client.config.getHost().

SearchModelsInput = {}

Promise<object[]>