mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(proxy/utils.py): auto-update if required view missing from db. raise warning for optional views. (#5675)
Prevents missing optional views from blocking proxy startup.
This commit is contained in:
parent
fa01b5c7d9
commit
d94d47424f
2 changed files with 55 additions and 32 deletions
|
@ -2125,6 +2125,8 @@ class ProxyConfig:
|
|||
if isinstance(v, str):
|
||||
# decrypt value
|
||||
_value = decrypt_value_helper(value=v)
|
||||
if _value is None:
|
||||
raise Exception("Unable to decrypt value={}".format(v))
|
||||
# sanity check if string > size 0
|
||||
if len(_value) > 0:
|
||||
_litellm_params[k] = _value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue