mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
feat(vertex_ai_context_caching.py): check gemini cache, if key already exists
This commit is contained in:
parent
b0cc1df2d6
commit
0eea01dae9
6 changed files with 171 additions and 56 deletions
|
@ -2236,7 +2236,7 @@ class Cache:
|
|||
if self.namespace is not None and isinstance(self.cache, RedisCache):
|
||||
self.cache.namespace = self.namespace
|
||||
|
||||
def get_cache_key(self, *args, **kwargs):
|
||||
def get_cache_key(self, *args, **kwargs) -> str:
|
||||
"""
|
||||
Get the cache key for the given arguments.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue