MAIDR Documentation - v3.69.0
    Preparing search index...

    Service for validating credentials and discovering available models across LLM providers.

    Index

    Constructors

    Methods

    • Validates an API key for the specified LLM provider. For Ollama the credential is the local server base URL, so reachability is checked instead of key validity.

      Parameters

      • modelKey: Llm

        The LLM provider identifier

      • apiKey: string

        The API key (or Ollama server base URL) to validate

      Returns Promise<ValidationResponse>

      Promise resolving to validation result with status and optional error message

    • Probes an LLM provider with the given credential, answering both credential validity and the list of available models with a single request. This is what keeps model dropdowns current: the lists come from the provider at use time instead of only from the curated catalog.

      Parameters

      • modelKey: Llm

        The LLM provider identifier

      • apiKey: string

        The API key (or Ollama server base URL)

      Returns Promise<ProviderProbeResult>

      Promise resolving to the probe result

    • Probes a local Ollama server, answering both reachability and the list of installed models with a single request so callers that need both (e.g. the settings dialog) avoid duplicate round-trips.

      Parameters

      • baseUrl: string

        The Ollama server base URL

      Returns Promise<OllamaProbeResult>

      Promise resolving to the probe result