调用 GenerativeModel.countTokens() 时的响应。
签名:
export interface CountTokensResponse
属性
属性 | 类型 | 说明 |
---|---|---|
totalBillableCharacters | 数字 | 请求的所有实例中统计的计费字符总数。 |
totalTokens | 数字 | 针对请求的所有实例统计的令牌总数。 |
CountTokensResponse.totalBillableCharacters
请求的所有实例中统计的计费字符总数。
签名:
totalBillableCharacters?: number;
CountTokensResponse.totalTokens
针对请求的所有实例统计的令牌总数。
签名:
totalTokens: number;