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

    See also VS Code ILanguageModelChatMetadata

    Implements

    Index

    Constructors

    • Parameters

      • id: string

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

      • model: string

        the model id as it is used by the Hugging Face API

      • status: LanguageModelStatus
      • apiKey: () => undefined | string

        function to retrieve the API key for Hugging Face

      • Optionalname: string
      • Optionalvendor: string
      • Optionalversion: string
      • Optionalfamily: string
      • OptionalmaxInputTokens: number
      • OptionalmaxOutputTokens: number

      Returns HuggingFaceModel

    Properties

    apiKey: () => undefined | string

    function to retrieve the API key for Hugging Face

    family?: string
    id: string

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

    maxInputTokens?: number
    maxOutputTokens?: number
    model: string

    the model id as it is used by the Hugging Face API

    name?: string
    vendor?: string
    version?: string

    Methods