Huggingface.js documentation

接口:TextGenerationStreamToken

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

接口:TextGenerationStreamToken

属性

id

• id:number

来自模型分词器的 Token ID

定义于

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


logprob

• logprob:number

Logprob

定义于

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


special

• special:boolean

该 token 是否为特殊 token 可用于在拼接时忽略 token

定义于

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


文本

• 文本:string

Token 文本

定义于

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

Update on GitHub