mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
- Issue: #8415 Signed-off-by: Pranay Chandekar <pranayc6@gmail.com>
This commit is contained in:
parent
de61ebd9e0
commit
7e70cd2a28
@ -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 [
|
||||||
|
Loading…
Reference in New Issue
Block a user