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

الرمز المولّد، واحدًا تلو الآخر

معرّف في

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

Update on GitHub