Huggingface.js documentation

接口:TextGenerationStreamOutput

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

接口:TextGenerationStreamOutput

属性

详细信息

• 详细信息:null | TextGenerationStreamDetails

生成详情 仅在生成完成后可用

定义于

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


生成的 _ 文本

• generated_text:null | string

完整生成的文本 仅在生成完成后可用

定义于

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


索引

• Optional 索引:number

定义于

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


token

• token:TextGenerationStreamToken

逐个生成的 token

定义于

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

Update on GitHub