- Issue: #8415

Signed-off-by: Pranay Chandekar <pranayc6@gmail.com>
pull/8557/head
Pranay Chandekar 1 year ago committed by GitHub
parent de61ebd9e0
commit 7e70cd2a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -457,9 +457,8 @@ class GPTCache(BaseCache):
"""
from gptcache.adapter.api import get
_gptcache = self.gptcache_dict.get(llm_string, None)
if _gptcache is None:
return None
_gptcache = self._get_gptcache(llm_string)
res = get(prompt, cache_obj=_gptcache)
if res:
return [

Loading…
Cancel
Save