Skip to content

Commit 7eb19e0

Browse files
committed
add totalBillableCharacters
1 parent acef5e3 commit 7eb19e0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/vertexai/src/types/responses.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,13 @@ export interface SafetyRating {
148148
* @public
149149
*/
150150
export interface CountTokensResponse {
151+
/**
152+
* The total number of tokens counted across all instances from the request.
153+
*/
151154
totalTokens: number;
155+
/**
156+
* The total number of billable characters counted across all instances
157+
* from the request.
158+
*/
159+
totalBillableCharacters?: number;
152160
}

0 commit comments

Comments
 (0)