Huggingface.js documentation

Interfaz: TextGenerationStreamOutput

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interfaz: TextGenerationStreamOutput

Propiedades

detalles

• detalles: null | TextGenerationStreamDetails

Detalles de la generación Solo disponible cuando la generación ha finalizado

Definido en

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


generado _ texto

• generated_text: null | string

Texto generado completo Solo disponible cuando la generación ha terminado

Definido en

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


índice

• Optional index: number

Definido en

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


token

• token: TextGenerationStreamToken

Token generado, uno a la vez

Definido en

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

Update on GitHub