🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: LLM()
莘权 马c7bc975cf20c
diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex b1ace19fa..6d774b0b4 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -16,7 +16,7 @@ from pydantic import BaseModel, Fieldfrom metagpt.actions import Action, ActionOutputfrom metagpt.config import CONFIGfrom metagpt.const import OPTIONS-from metagpt.llm import LLM+from metagpt.llm import LLMFactoryfrom metagpt.logs import loggerfrom metagpt.memory import LongTermMemory, Memoryfrom metagpt.schema import Message, MessageTag@@ -113,7 +113,7 @@ class Role:constraints = Role.format_value(constraints)desc = Role.format_value(desc)- self._llm = LLM()+ self._llm = LLMFactory.new_llm()self._setting = RoleSetting(name=name, profile=profile, goal=goal, constraints=constraints, desc=desc)self._states = []self._actions = []