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

    Implements

    Index

    Constructors

    Properties

    _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: undefined | string
    _apiVersion: undefined | string
    _proxyUrl: undefined | string
    discoveryFetcher: ModelDiscoveryFetcher
    languageModelRegistry: LanguageModelRegistry
    logger: ILogger
    openAiModelUtils: OpenAiModelUtils
    responseApiUtils: OpenAiResponseApiUtils

    Accessors

    Methods

    • 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