-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(google-genai): Context Caching #7169
feat(google-genai): Context Caching #7169
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
8e039e2
to
b065a2f
Compare
Hi @jacoblee93, we've implemented the foundational structure for context caching with files. Could you take a look and let us know if the code aligns with our intended design? Thank you! |
b065a2f
to
6658acb
Compare
Looks reasonable to me - @afirstenberg can you have a look? It looks similar to some work you've done on Vertex. We will also want to write up some docs! |
We will be working on the docs now, but please keep us updated if there's any suggestion on the design or the tests. Thank you both! |
@jacoblee93 @afirstenberg We currently add a wrapper around |
|
||
const filename = fileURLToPath(import.meta.url); | ||
const dirname = path.dirname(filename); | ||
const pathToVideoFile = path.join(dirname, "/data/Sherlock_Jr_FullMovie.mp4"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use a smaller file for this test? Maybe one of the files that already exist in the repo?
Thank you! Removed the intermediate class you added in favor of just the raw managers It wasn't exported anyway |
Also renamed to Thanks again, will go live shortly! |
Co-authored-by: Chau Nguyen <[email protected]> Co-authored-by: jacoblee93 <[email protected]>
Fixes #5841
Implemented conetxt caching feature for google-genai, we now allow user to caching a file and create gen-ai model base on the cached content