Huggingface.js 文件

介面:TextGenerationStreamOutput

Hugging Face's logo
加入 Hugging Face 社群

並獲得增強的文件體驗

開始使用

介面:TextGenerationStreamOutput

屬性

詳情

details: null | TextGenerationStreamDetails

生成詳情僅在生成完成時可用

定義於

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


generated _ text

generated_text: null | string

完成生成的文字僅在生成完成時可用

定義於

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


索引

可選 index: number

定義於

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


token

token: TextGenerationStreamToken

生成的令牌,每次一個

定義於

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

< > 在 GitHub 上更新

© . This site is unofficial and not affiliated with Hugging Face, Inc.