Huggingface.js documentation

インターフェース: TextGenerationStreamPrefillToken

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

インターフェース: TextGenerationStreamPrefillToken

プロパティ

id

• id: number

モデルのトークナイザーからのトークンID

定義場所

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


logprob

• Optional logprob: number

Logprob 最初のトークンのlogprobは計算できないため、オプションです

定義場所

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


テキスト

• テキスト: string

トークンテキスト

定義場所

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

Update on GitHub