Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fixbug: LLM()

莘权 马2324c1c6dcc3
diff --git a/metagpt/llm.py b/metagpt/llm.py
index 93cbcaaf6..4772d2e6e 100644
--- a/metagpt/llm.py
+++ b/metagpt/llm.py
@@ -41,6 +41,6 @@ async def ai_func(prompt):
class LLMFactory:
@staticmethod
- async def new_llm() -> object:
+ def new_llm() -> object:
llm = OpenAI_LLM() if CONFIG.LLM_TYPE == LLMType.OPENAI.value else MetaGPT_LLM()
return llm