Huggingface.js 文档

接口:TextGenerationStreamPrefillToken

Hugging Face's logo
加入 Hugging Face 社区

并获取增强的文档体验

开始使用

接口:TextGenerationStreamPrefillToken

属性

id

id: number

来自模型分词器的 Token ID

定义于

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


logprob

Optional logprob: number

Logprob 是可选的,因为无法计算第一个 token 的 logprob

定义于

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


text

text: string

Token 文本

定义于

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

< > GitHub 上更新