feat(vertex_ai_context_caching.py): check gemini cache, if key already exists

This commit is contained in:
Krrish Dholakia 2024-08-26 20:28:18 -07:00
parent 074e30fa10
commit b277086cf7
6 changed files with 171 additions and 56 deletions

View file

@ -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.