fix(proxy_server.py): fix linting issue

This commit is contained in:
Krrish Dholakia 2024-04-04 19:15:57 -07:00
parent e3c2bdef4d
commit fbfcd57798

View file

@ -6794,9 +6794,7 @@ async def add_new_model(
- store keys separately - store keys separately
""" """
# encrypt litellm params # # encrypt litellm params #
_litellm_params_dict = model_params.litellm_params.model_dump( _litellm_params_dict = model_params.litellm_params.dict(exclude_none=True)
exclude_none=True
)
for k, v in _litellm_params_dict.items(): for k, v in _litellm_params_dict.items():
if isinstance(v, str): if isinstance(v, str):
encrypted_value = encrypt_value(value=v, master_key=master_key) # type: ignore encrypted_value = encrypt_value(value=v, master_key=master_key) # type: ignore