Skip to main content

Interface: HFInput

llms.internal.HFInput

Implemented by

Properties

apiKey

Optional apiKey: string

API key to use.

Defined in

langchain/src/llms/hf.ts:25


frequencyPenalty

Optional frequencyPenalty: number

Penalizes repeated tokens according to frequency

Defined in

langchain/src/llms/hf.ts:22


maxTokens

Optional maxTokens: number

Maximum number of tokens to generate in the completion.

Defined in

langchain/src/llms/hf.ts:13


model

model: string

Model to use

Defined in

langchain/src/llms/hf.ts:5


temperature

Optional temperature: number

Sampling temperature to use

Defined in

langchain/src/llms/hf.ts:8


topK

Optional topK: number

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

Defined in

langchain/src/llms/hf.ts:19


topP

Optional topP: number

Total probability mass of tokens to consider at each step

Defined in

langchain/src/llms/hf.ts:16