mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
When setting the max budget, I don't want to overcome this limit
This commit is contained in:
parent
d340738013
commit
34b3de1f86
1 changed files with 1 additions and 1 deletions
|
|
@ -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}"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue