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 index: number

定義場所

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


トークン

• トークン: TextGenerationStreamToken

1トークンずつ生成されたトークン

定義場所

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

Update on GitHub