Huggingface.js documentation

Interface: TextGenerationStreamOutput

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: TextGenerationStreamOutput

Propriedades

detalhes

• detalhes: null | TextGenerationStreamDetails

Detalhes da geração Disponível apenas quando a geração é concluída

Definido em

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


gerado _ texto

• generated_text: null | string

Texto gerado completo Disponível apenas quando a geração é concluída

Definido em

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


índice

• Optional index: number

Definido em

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


token

• token: TextGenerationStreamToken

Token gerado, um de cada vez

Definido em

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

Update on GitHub