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: 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: TextGenerationStreamPrefillToken[]

رموز الاستدعاء

معرّف في

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


بذرة

• seed Optional: number

بذر العينة إذا كانت عملية أخذ العينات مفعّلة

معرّف في

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


رموز

• رموز: TextGenerationStreamToken[]

الرموز المولّدة

معرّف في

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

Update on GitHub