mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(proxy_server.py): fix linting issue
This commit is contained in:
parent
e3c2bdef4d
commit
fbfcd57798
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue