Skip to content

Function: endpointCapabilities()

endpointCapabilities(endpoint): EndpointCapabilities

Derive an endpoint’s capabilities from its Databricks task hint and its classified ModelClass, so consumers filter on capability instead of re-deriving it from raw task / class strings.

Either signal alone is enough: the task hint is authoritative when present, and the class covers endpoints Databricks left untasked but the classifier recognized. Embedding wins over chat when both point at it, since the two are not interchangeable.

ChatThinking | ChatBalanced | ChatFast | Embedding = ...

string = ...

number = ...

string = ...

string = ...

{ cost?: number; quality?: number; speed?: number; } = ...

number = ...

number = ...

number = ...

string = ...

boolean = ...

string = ...

EndpointCapabilities