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

    Represents extension specific information about the access to language models.

    interface LanguageModelAccessInformation {
        onDidChange: Event<void>;
        canSendRequest(chat: LanguageModelChat): undefined | boolean;
    }
    Index

    Properties

    Methods

    Properties

    onDidChange: Event<void>

    An event that fires when access information changes.

    Methods

    • Checks if a request can be made to a language model.

      Note that calling this function will not trigger a consent UI but just checks for a persisted state.

      Parameters

      Returns undefined | boolean

      true if a request can be made, false if not, undefined if the language model does not exist or consent hasn't been asked for.