From d34073801397546d7669840705c2acca31383384 Mon Sep 17 00:00:00 2001 From: Arnaud Gelas Date: Sat, 13 Jan 2024 15:53:01 +0100 Subject: [PATCH] Even if you set an investment, the default investment shows in the log --- metagpt/team.py | 1 + 1 file changed, 1 insertion(+) 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