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}" )