Huggingface.js documentation
Interface: TextGenerationStreamPrefillToken
Interface: TextGenerationStreamPrefillToken
Properties
id
• id: number
Token ID from the model tokenizer
Defined in
inference/src/tasks/nlp/textGenerationStream.ts:22
logprob
• Optional
logprob: number
Logprob Optional since the logprob of the first token cannot be computed
Defined in
inference/src/tasks/nlp/textGenerationStream.ts:29
text
• text: string
Token text
Defined in
inference/src/tasks/nlp/textGenerationStream.ts:24
< > Update on GitHub