🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: llm missing
莘权 马b58d2ff2d3ff
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.pyindex 514671488..81be1975a 100644--- a/metagpt/provider/openai_api.py+++ b/metagpt/provider/openai_api.py@@ -263,15 +263,6 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):raise openai.error.OpenAIError("Exceeds the maximum retries")async def get_summary(self, text: str, max_words=200, keep_language: bool = False, **kwargs) -> str:- """- Return string in the following format:- [- {"role": "system", "content": "You are a helpful assistant."},- {"role": "user", "content": "Knock knock."},- {"role": "assistant", "content": "Who's there?"},- {"role": "user", "content": "Orange."},- ]- """from metagpt.memory.brain_memory import BrainMemorymemory = BrainMemory(llm_type=LLMType.OPENAI.value, historical_summary=text, cacheable=False)