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

Propriedades

id

• id: number

ID do token do tokenizador do modelo

Definido em

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


logprob

• logprob: number

Logprob

Definido em

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


especial

• especial: boolean

O token é um token especial Pode ser usado para ignorar tokens ao concatenar

Definido em

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


text

• texto: string

Texto do token

Definido em

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

Update on GitHub