fixbug: max_words

This commit is contained in:
莘权 马 2023-09-20 17:45:47 +08:00
parent c69928a174
commit 56bf0b9b97

View file

@ -228,4 +228,4 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
from metagpt.memory.brain_memory import BrainMemory
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)
return await memory.summarize(llm=self, max_words=max_words, keep_language=keep_language)