forked from phoenix/litellm-mirror
fix(internal_user_endpoints.py): expose new 'internal_user_budget_duration' flag
Relevant to - https://github.com/BerriAI/litellm/issues/5106
This commit is contained in:
parent
8831f30e9d
commit
2776d9cb0d
3 changed files with 14 additions and 0 deletions
|
@ -91,6 +91,10 @@ async def new_user(
|
|||
if litellm.max_internal_user_budget is not None:
|
||||
data_json["max_budget"] = litellm.max_internal_user_budget
|
||||
|
||||
if "budget_duration" in data_json and data_json["budget_duration"] is None:
|
||||
if litellm.internal_user_budget_duration is not None:
|
||||
data_json["budget_duration"] = litellm.internal_user_budget_duration
|
||||
|
||||
response = await generate_key_helper_fn(request_type="user", **data_json)
|
||||
|
||||
# Admin UI Logic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue