mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
fix(proxy/auth): copy end_user_max_budget in update_valid_token_with_end_user_params
This commit is contained in:
parent
168a0055a2
commit
8d0fa9465e
1 changed files with 2 additions and 0 deletions
|
|
@ -563,6 +563,8 @@ def update_valid_token_with_end_user_params(valid_token: UserAPIKeyAuth, end_use
|
|||
valid_token.end_user_rpm_limit = end_user_params["end_user_rpm_limit"]
|
||||
if end_user_params.get("allowed_model_region") is not None:
|
||||
valid_token.allowed_model_region = end_user_params["allowed_model_region"]
|
||||
if end_user_params.get("end_user_max_budget") is not None:
|
||||
valid_token.end_user_max_budget = end_user_params["end_user_max_budget"]
|
||||
if end_user_params.get("end_user_model_max_budget") is not None:
|
||||
valid_token.end_user_model_max_budget = end_user_params["end_user_model_max_budget"]
|
||||
return valid_token
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue