Skip to content

Commit

Permalink
fix manager (#2056)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhancockio authored and devin-ai-integration[bot] committed Feb 9, 2025
1 parent 4b6abea commit f29534a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/crewai/crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,12 +681,7 @@ def _create_manager_agent(self):
manager.tools = []
raise Exception("Manager agent should not have tools")
else:
self.manager_llm = (
getattr(self.manager_llm, "model_name", None)
or getattr(self.manager_llm, "model", None)
or getattr(self.manager_llm, "deployment_name", None)
or self.manager_llm
)
self.manager_llm = create_llm(self.manager_llm)
manager = Agent(
role=i18n.retrieve("hierarchical_manager_agent", "role"),
goal=i18n.retrieve("hierarchical_manager_agent", "goal"),
Expand Down

0 comments on commit f29534a

Please sign in to comment.