Theia API Documentation v1.77.0
    Preparing search index...

    Implements

    Index
    _allowEnvironmentApiKey: boolean = false

    Whether a key found in the environment may be used. Withheld until the user confirms it, so the gate sits on the key itself: every path that reaches for one — discovery, a custom endpoint, a manually configured model — is covered, and revoking the consent takes effect at once.

    _apiKey: string | undefined
    _apiVersion: string | undefined
    _proxyUrl: string | undefined
    discoveryFetcher: ModelDiscoveryFetcher
    languageModelRegistry: LanguageModelRegistry
    logger: ILogger
    openAiLanguageModelFactory: OpenAiLanguageModelFactory
    • Heuristic for the text-chat models among everything /v1/models reports: the gpt-*, chatgpt-* and o1/o3/o4-style families, minus the variants that speak a different API than chat completions: audio, realtime, live, transcription, speech, image, embeddings, moderation, the search and computer-use tool endpoints, and the legacy -instruct completion models.

      The terms match anywhere in the id, so a family that carries one in a longer word goes with it (o3-deep-research, which speaks the responses API and not this one). Anything this drops or misses can still be configured as a custom endpoint.

      Parameters

      • id: string

      Returns boolean

    • Iterates the (auto-paginated) /v1/models endpoint. Overridable for testing.

      Parameters

      • apiKey: string
      • proxyUrl: string | undefined

      Returns Promise<ListedOpenAiModel[]>