🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
feat: +cache
莘权 马4dd9f7743f0d
diff --git a/metagpt/memory/brain_memory.py b/metagpt/memory/brain_memory.pyindex a974d95f6..dedea3b41 100644--- a/metagpt/memory/brain_memory.py+++ b/metagpt/memory/brain_memory.py@@ -5,8 +5,8 @@@Author : mashenquan@File : brain_memory.py@Desc : Support memory for multiple tasks and multiple mainlines.+@Modified By: mashenquan, 2023/9/4. + redis memory cache."""-import hashlibimport jsonfrom enum import Enumfrom typing import Dict, List@@ -74,10 +74,6 @@ class BrainMemory(pydantic.BaseModel):return Nonereturn last_msg.content- @staticmethod- def get_md5(text: str) -> str:- return hashlib.md5(text.encode()).hexdigest()-@staticmethodasync def loads(redis_key: str, redis_conf: Dict = None) -> "BrainMemory":redis = Redis(conf=redis_conf)