mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(proxy_server.py): add license protection for 'allowed_ip' address feature
This commit is contained in:
parent
f982e93d24
commit
0ecf94d32e
2 changed files with 7 additions and 0 deletions
|
@ -1690,6 +1690,12 @@ class ProxyConfig:
|
|||
ui_access_mode = general_settings.get(
|
||||
"ui_access_mode", "all"
|
||||
) # can be either ["admin_only" or "all"]
|
||||
### ALLOWED IP ###
|
||||
allowed_ips = general_settings.get("allowed_ips", None)
|
||||
if allowed_ips is not None and premium_user is False:
|
||||
raise ValueError(
|
||||
"allowed_ips is an Enterprise Feature. Please add a valid LITELLM_LICENSE to your envionment."
|
||||
)
|
||||
## BUDGET RESCHEDULER ##
|
||||
proxy_budget_rescheduler_min_time = general_settings.get(
|
||||
"proxy_budget_rescheduler_min_time", proxy_budget_rescheduler_min_time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue