Huggingface.js documentation

Interface: TextGenerationPrefillToken

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: TextGenerationPrefillToken

Indexable

▪ [property: string]: unknown

Properties

id

id: number

Defined in

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


logprob

logprob: number

Defined in

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


text

text: string

The text associated with that token

Defined in

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

< > Update on GitHub