Huggingface.js documentation

Interfaz: TextGenerationStreamToken

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interfaz: TextGenerationStreamToken

Propiedades

id

• id: number

ID de token del tokenizador del modelo

Definido en

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


logprob

• logprob: number

Logprob

Definido en

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


especial

• special: boolean

Si el token es un token especial Se puede usar para ignorar tokens al concatenar

Definido en

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


texto

• texto: string

Texto del token

Definido en

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

Update on GitHub