Implements

  • LanguageModel

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

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

      function to retrieve the API key for Hugging Face

        • (): undefined | string
        • Returns undefined | string

    • Optional name: string
    • Optional vendor: string
    • Optional version: string
    • Optional family: string
    • Optional maxInputTokens: number
    • Optional maxOutputTokens: number
    • Optional defaultRequestSettings: Record<string, unknown>

    Returns HuggingFaceModel

Properties

apiKey: (() => undefined | string)

function to retrieve the API key for Hugging Face

Type declaration

    • (): undefined | string
    • Returns undefined | string

defaultRequestSettings?: Record<string, unknown>
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