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