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

includeCredentials?: string | boolean

Credentials to use for the request. If this is a string, it will be passed straight on. If it's a boolean, true will be "include" and false will not send credentials at all.

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