forked from phoenix/litellm-mirror
fix(proxy_server.py): fix linting errors
This commit is contained in:
parent
ed50522863
commit
dd6caa8b55
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:
|
||||
try:
|
||||
return pydantic_obj.model_dump() # noqa
|
||||
return pydantic_obj.model_dump() # type: ignore
|
||||
except:
|
||||
# if using pydantic v1
|
||||
return pydantic_obj.dict()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue