Skip to main content

discover_models

Function discover_models 

Source
pub async fn discover_models(
    client: &Client,
    base_url: &str,
    api_key: &str,
) -> Vec<String>
Expand description

Probe an OpenAI-compatible GET {base}/models endpoint.

Returns the advertised ids, or an empty list when the endpoint is down, refuses, or answers in an unknown shape. Never fails: discovery is a best-effort enrichment of the curated catalog.