Skip to content

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

Even if you set an investment, the default investment shows in the log

Arnaud Gelasd34073801397
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