mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
refactor: brain memory
This commit is contained in:
parent
1254f93467
commit
348cafa0b8
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
|
|||
"""
|
||||
from metagpt.memory.brain_memory import BrainMemory
|
||||
|
||||
memory = BrainMemory(llm_type=LLMType.OPENAI.value, historical_summary=text)
|
||||
memory = BrainMemory(llm_type=LLMType.OPENAI.value, historical_summary=text, cacheable=False)
|
||||
return await memory.summarize(llm=self, max_length=max_words, keep_language=keep_language)
|
||||
|
||||
MAX_TRY = 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue