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:
Krish Dholakia 2024-09-12 22:15:44 -07:00 committed by GitHub
parent fa01b5c7d9
commit d94d47424f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 55 additions and 32 deletions

View file

@ -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