Skip to content

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

When setting the max budget, I don't want to overcome this limit

Arnaud Gelas34b3de1f863e
diff --git a/metagpt/team.py b/metagpt/team.py
index 8fd6760f5..aad24efa0 100644
--- a/metagpt/team.py
+++ b/metagpt/team.py
@@ -88,7 +88,7 @@ class Team(BaseModel):
@staticmethod
def _check_balance():
- if CONFIG.cost_manager.total_cost > CONFIG.cost_manager.max_budget:
+ if CONFIG.cost_manager.total_cost >= CONFIG.cost_manager.max_budget:
raise NoMoneyException(
CONFIG.cost_manager.total_cost, f"Insufficient funds: {CONFIG.cost_manager.max_budget}"
)