-
Notifications
You must be signed in to change notification settings - Fork 465
Explicit Caching patch #377
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
Merged
MarkDaoust
merged 37 commits into
google-gemini:main
from
mayureshagashe2105:magashe-caching-patch-1
Jun 13, 2024
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
5824d8e
Squashed commit of the following:
mayureshagashe2105 3d8ff35
Remove auto cache deletion
mayureshagashe2105 4c5a31b
Rename _to_dict --> _get_update_fields
mayureshagashe2105 b6d440f
Fix tests
mayureshagashe2105 e53dbab
Set 'CachedContent' as a public property
mayureshagashe2105 f53a7c6
blacken
mayureshagashe2105 02cba55
set 'role=user' when content is passed as a str (#4)
mayureshagashe2105 4c495ef
Handle ttl and expire_time separately
mayureshagashe2105 0f5f8eb
Remove name param
mayureshagashe2105 cef3fc7
Update caching_types.py
MarkDaoust f03a765
Update caching.py
MarkDaoust 42b1e35
Update docstrs and error messages
mayureshagashe2105 e4648a7
Update model name to gemini-1.5-pro for caching tests
mayureshagashe2105 f2b495f
Merge branch 'magashe-caching-patch-1' of https://github.com/mayuresh…
mayureshagashe2105 f715ecb
Remove dafault ttl assignment
mayureshagashe2105 a576166
blacken
mayureshagashe2105 5e9b14b
Remove client arg
mayureshagashe2105 6ccee3e
Add 'usage_metadata' param to CachedContent class
mayureshagashe2105 3de6909
Add 'display_name' to CachedContent class
mayureshagashe2105 7fccb32
update generativelanguage version, fix tests
MarkDaoust 2fabe67
format
MarkDaoust 7d14bb1
fewer automatic 'role' insertions
MarkDaoust 3982b48
cleanup
MarkDaoust 940834a
Wrap the proto
MarkDaoust 4a5229e
Apply suggestions from code review
MarkDaoust c039644
fix
MarkDaoust fc767a1
format
MarkDaoust 75cc224
cleanup
MarkDaoust 19f0384
update version
MarkDaoust d438860
fix
MarkDaoust aa12c3d
typing
MarkDaoust cc54a87
Merge branch 'main' into magashe-caching-patch-1
MarkDaoust a6f4355
Simplify update method
mayureshagashe2105 1c77da4
Add repr to CachedContent
mayureshagashe2105 0bac36e
cleanup
mayureshagashe2105 25f4d10
blacken
mayureshagashe2105 9b48863
Apply suggestions from code review
mayureshagashe2105 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.