Skip to main content

fetch_lmstudio_models

Function fetch_lmstudio_models 

Source
pub async fn fetch_lmstudio_models(
    base_url: Option<String>,
) -> Result<Vec<String>, Error>
Expand description

Fetches available models from the LM Studio API endpoint

Uses OpenAI-compatible /v1/models endpoint by default. Set LMSTUDIO_USE_NATIVE_API=true to use native REST API at /api/v0/models.