Huggingface.js 文档

接口:TextGenerationStreamOutput

Hugging Face's logo
加入 Hugging Face 社区

并获取增强的文档体验

开始使用

接口:TextGenerationStreamOutput

属性

详情

details: null | TextGenerationStreamDetails

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

定义于

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


generated _ text

generated_text: null | string

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

定义于

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


索引

Optional index: number

定义于

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


token

token: TextGenerationStreamToken

逐个生成的 token

定义于

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

< > 在 GitHub 上更新