refactor: brain memory

This commit is contained in:
莘权 马 2023-09-08 10:07:46 +08:00
parent 8b5d83956d
commit 827505fca9

View file

@ -274,7 +274,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
]
"""
memory = BrainMemory(llm_type=LLMType.OPENAI.value, historical_summary=text)
return await memory.summarize(llm=self._llm, max_length=max_words, keep_language=keep_language)
return await memory.summarize(llm=self, max_length=max_words, keep_language=keep_language)
MAX_TRY = 5