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

    See also VS Code ILanguageModelChatMetadata

    Implements

    Index

    Constructors

    Properties

    DEFAULT_REQUEST_SETTINGS: Partial<Omit<ChatRequest, "stream" | "model">> = ...
    host: () => undefined | string
    id: string

    the unique id for this language model. It will be used to identify the model in the UI.

    model: string

    the unique model name as used in the Ollama environment.

    providerId: "ollama" = 'ollama'
    tokenUsageService?: TokenUsageService
    vendor: string = 'Ollama'

    Methods

    • Check if the Ollama server supports thinking.

      Use the Ollama 'show' request to get information about the model, so we can check the capabilities for the 'thinking' capability.

      Parameters

      • ollama: Ollama

        The Ollama client instance.

      • model: string

        The name of the Ollama model.

      Returns Promise<boolean>

      A boolean indicating whether the Ollama model supports thinking.

    • Retrieves the settings for the chat request, merging the request-specific settings with the default settings.

      Parameters

      Returns Partial<ChatRequest>

      A partial ChatRequest object containing the merged settings.