Huggingface.js documentation

Interface: TextGenerationInput

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: TextGenerationInput

Inputs for Text Generation inference

Indexable

▪ [property: string]: unknown

Properties

inputs

inputs: string

The text to initialize generation with

Defined in

inference/src/tasks/nlp/textGeneration.ts:12


parameters

Optional parameters: TextGenerationParameters

Additional inference parameters

Defined in

inference/src/tasks/nlp/textGeneration.ts:16


stream

Optional stream: boolean

Whether to stream output tokens

Defined in

inference/src/tasks/nlp/textGeneration.ts:20