Skip to content

Commit

Permalink
Copybara import of the project:
Browse files Browse the repository at this point in the history
--
f8a3bdf by Oleksii Oleniuk <[email protected]>:

fix: Add Context Cache support for ChatSessionPreview class (#433)

* add content cache to chat session

* remove logs, add gitignore

---------

Co-authored-by: Oleksii Oleniuk <[email protected]>
Co-authored-by: Yvonne Yu <[email protected]>
--
2c92ef3 by Oleksii Oleniuk <[email protected]>:

extend UsageMetadata interface

COPYBARA_INTEGRATE_REVIEW=#439 from oleksii-oleniuk-star:feature/gemini-context-cache-4 3ab1693
PiperOrigin-RevId: 686671597
  • Loading branch information
happy-qiao authored and copybara-github committed Oct 16, 2024
1 parent a3beab1 commit df6f040
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ export declare interface UsageMetadata {
candidatesTokenCount?: number;
/** Optional. Total number of tokens. */
totalTokenCount?: number;
/** Optional. Number of tokens in the cached content. */
cachedContentTokenCount?: number;
}

/**
Expand Down

0 comments on commit df6f040

Please sign in to comment.