Huggingface.js documentation

Interface : TextGenerationStreamToken

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface : TextGenerationStreamToken

Propriétés

id

• id : number

ID de jeton du tokeniseur du modèle

Défini dans

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


logprob

• logprob : number

Logprob

Défini dans

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


special

• special : boolean

Le jeton est-il un jeton spécial Peut être utilisé pour ignorer les jetons lors de la concaténation

Défini dans

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


texte

• texte : string

Texte du jeton

Défini dans

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

Update on GitHub