mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix allow setting license in config.yaml
This commit is contained in:
parent
2be984ebee
commit
cc8e6f1d44
1 changed files with 5 additions and 0 deletions
|
@ -1878,6 +1878,11 @@ class ProxyConfig:
|
|||
+ CommonProxyErrors.not_premium_user.value
|
||||
)
|
||||
|
||||
# check if litellm_license in general_settings
|
||||
if "litellm_license" in general_settings:
|
||||
_license_check.license_str = general_settings["litellm_license"]
|
||||
premium_user = _license_check.is_premium()
|
||||
|
||||
router_params: dict = {
|
||||
"cache_responses": litellm.cache
|
||||
!= None, # cache if user passed in cache values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue