mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-05 22:25:05 +00:00
fix(proxy_server.py): fix linting errors
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user