The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
FIX: GPTCache cache_obj creation loop (#4827)
elBarkeya8ded21b6963
diff --git a/langchain/cache.py b/langchain/cache.pyindex 3d89233d71..c8e021c1f8 100644--- a/langchain/cache.py+++ b/langchain/cache.py@@ -341,6 +341,8 @@ class GPTCache(BaseCache):pre_embedding_func=get_prompt,data_manager=get_data_manager(data_path=llm_string),)++ self.gptcache_dict[llm_string] = _gptcachereturn _gptcachedef _get_gptcache(self, llm_string: str) -> Any: