Huggingface.js documentation

الواجهة: TextGenerationStreamDetails

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

الواجهة: TextGenerationStreamDetails

الخصائص

أفضل _ من _ التسلسلات

• Optional best_of_sequences: TextGenerationStreamBestOfSequence[]

تسلسلات إضافية عند استخدام معامل best_of

معرّف في

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


سبب الانتهاء

• finish_reason: TextGenerationStreamFinishReason

سبب إنهاء التوليد

معرّف في

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


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

• generated_tokens: number

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

معرّف في

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


التعبئة المسبقة

• prefill: TextGenerationStreamPrefillToken[]

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

معرّف في

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


بذرة

• seed Optional: number

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

معرّف في

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


رموز

• رموز: TextGenerationStreamToken[]

معرّف في

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

Update on GitHub