Huggingface.js documentation

Interface: TextGenerationStreamPrefillToken

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: TextGenerationStreamPrefillToken

Properties

id

id: number

Token ID from the model tokenizer

Defined in

inference/src/tasks/nlp/textGenerationStream.ts:21


logprob

Optional logprob: number

Logprob Optional since the logprob of the first token cannot be computed

Defined in

inference/src/tasks/nlp/textGenerationStream.ts:28


text

text: string

Token text

Defined in

inference/src/tasks/nlp/textGenerationStream.ts:23