(Bug fix) - Allow setting null for max_budget, rpm_limit, tpm_limit when updating values on a team (#7912)

* fix update_team

* fix test_key_limit_modifications
This commit is contained in:
Ishaan Jaff 2025-01-21 19:19:36 -08:00 committed by GitHub
parent 6b810bd815
commit b056bc0ac3
2 changed files with 73 additions and 1 deletions

View file

@ -461,7 +461,7 @@ async def update_team(
detail={"error": f"Team not found, passed team_id={data.team_id}"},
)
updated_kv = data.json(exclude_none=True)
updated_kv = data.json(exclude_unset=True)
# Check budget_duration and budget_reset_at
if data.budget_duration is not None: