diff --git a/metagpt/team.py b/metagpt/team.py index b98fc2efb..8fd6760f5 100644 --- a/metagpt/team.py +++ b/metagpt/team.py @@ -83,6 +83,7 @@ class Team(BaseModel): """Invest company. raise NoMoneyException when exceed max_budget.""" self.investment = investment CONFIG.max_budget = investment + CONFIG.cost_manager.max_budget = investment logger.info(f"Investment: ${investment}.") @staticmethod