mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(proxy_server.py): fix linting errors
This commit is contained in:
parent
2048ef445d
commit
043d0c0c89
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ def _get_bearer_token(api_key: str):
|
||||||
|
|
||||||
def _get_pydantic_json_dict(pydantic_obj: BaseModel) -> dict:
|
def _get_pydantic_json_dict(pydantic_obj: BaseModel) -> dict:
|
||||||
try:
|
try:
|
||||||
return pydantic_obj.model_dump() # noqa
|
return pydantic_obj.model_dump() # type: ignore
|
||||||
except:
|
except:
|
||||||
# if using pydantic v1
|
# if using pydantic v1
|
||||||
return pydantic_obj.dict()
|
return pydantic_obj.dict()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue