Huggingface.js documentation

インターフェース: TextGenerationStreamBestOfSequence

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

インターフェース: TextGenerationStreamBestOfSequence

プロパティ

finish _ reason

• finish_reason: TextGenerationStreamFinishReason

生成終了理由

定義場所

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


生成されたテキスト

• generated_text: string

生成されたテキスト

定義場所

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


生成されたトークン

• generated_tokens: number

生成されたトークンの数

定義場所

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


prefill

• prefill: TextGenerationStreamPrefillToken[]

プロンプトトークン

定義場所

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


seed

• Optional seed: number

サンプリングが有効化されている場合、サンプリングのシード

定義場所

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


トークン

• トークン: TextGenerationStreamToken[]

生成されたトークン

定義場所

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

Update on GitHub