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

    Represents a language model provided by a LanguageModelChatProvider.

    interface LanguageModelChatInformation {
        capabilities: { imageInput?: boolean; toolCalling?: number | boolean };
        detail?: string;
        family: string;
        id: string;
        maxInputTokens: number;
        maxOutputTokens: number;
        name: string;
        tooltip?: string;
        version: string;
    }
    Index

    Properties

    capabilities: { imageInput?: boolean; toolCalling?: number | boolean }

    Various features that the model supports such as tool calling or image input.

    Type Declaration

    • Optional ReadonlyimageInput?: boolean

      Whether image input is supported by the model. Common supported images are jpg and png, but each model will vary in supported mimetypes.

    • Optional ReadonlytoolCalling?: number | boolean

      Whether tool calling is supported by the model. If a number is provided, that is the maximum number of tools that can be provided in a request to the model.

    detail?: string

    An optional, human-readable string which will be rendered alongside the model. Useful for distinguishing models of the same name in the UI.

    family: string

    Opaque family-name of the language model. Values might be gpt-3.5-turbo, gpt4, phi2, or llama

    id: string

    Unique identifier for the language model. Must be unique per provider, but not required to be globally unique.

    maxInputTokens: number

    The maximum number of tokens the model can accept as input.

    maxOutputTokens: number

    The maximum number of tokens the model is capable of producing.

    name: string

    Human-readable name of the language model.

    tooltip?: string

    The tooltip to render when hovering the model. Used to provide more information about the model.

    version: string

    Opaque version string of the model. This is used as a lookup value in LanguageModelChatSelector.version An example is how GPT 4o has multiple versions like 2024-11-20 and 2024-08-06