- Issue: #8415

Signed-off-by: Pranay Chandekar <pranayc6@gmail.com>
This commit is contained in:
Pranay Chandekar 2023-08-01 05:38:46 +05:30 committed by GitHub
parent de61ebd9e0
commit 7e70cd2a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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