Interface HFInput

Interface defining the parameters for configuring the Hugging Face model for text generation.

Hierarchy

  • HFInput

Implemented by

Properties

model: string

Model to use

apiKey?: string

API key to use.

endpointUrl?: string

Custom inference endpoint URL to use

frequencyPenalty?: number

Penalizes repeated tokens according to frequency

maxTokens?: number

Maximum number of tokens to generate in the completion.

temperature?: number

Sampling temperature to use

topK?: number

Integer to define the top tokens considered within the sample operation to create new text.

topP?: number

Total probability mass of tokens to consider at each step

Generated using TypeDoc