mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(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:
parent
6b810bd815
commit
b056bc0ac3
2 changed files with 73 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue