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

Text Generation Input.

Auto-generated from TGI specs. For more details, check out https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/scripts/inference-tgi-import.ts.

Indexable

▪ [property: string]: unknown

Properties

inputs

inputs: string

Defined in

tasks/dist/commonjs/tasks/text-generation/inference.d.ts:14


parameters

Optional parameters: TextGenerationInputGenerateParameters

Defined in

tasks/dist/commonjs/tasks/text-generation/inference.d.ts:15


stream

Optional stream: boolean

Defined in

tasks/dist/commonjs/tasks/text-generation/inference.d.ts:16

< > Update on GitHub