🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: max_words
莘权 马56bf0b9b97c6
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.pyindex 7fc8b867a..953043912 100644--- a/metagpt/provider/openai_api.py+++ b/metagpt/provider/openai_api.py@@ -228,4 +228,4 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):from metagpt.memory.brain_memory import BrainMemorymemory = 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)