Huggingface.js 文档

接口:TextGenerationStreamToken

Hugging Face's logo
加入 Hugging Face 社区

并获得增强的文档体验

开始使用

接口:TextGenerationStreamToken

属性

id

id: number

来自模型分词器的 Token ID

定义在

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


对数概率

logprob: number

对数概率

定义在

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


special

special: boolean

标记是否为特殊标记。可用于在连接时忽略标记

定义在

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


文本

text: string

标记文本

定义在

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

< > 在 GitHub 上更新