build(pyproject.toml): require pydantic v2

https://github.com/BerriAI/litellm/pull/3670 moved to pydantic v2. This created issues for people using sdk with pydantic v1. Move to requiring pydantic v2
This commit is contained in:
Krrish Dholakia 2024-06-12 10:40:31 -07:00
parent c059352908
commit ffea0a2aed
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@ click = "*"
jinja2 = "^3.1.2"
aiohttp = "*"
requests = "^2.31.0"
pydantic = "^2.0.0"
uvicorn = {version = "^0.22.0", optional = true}
gunicorn = {version = "^22.0.0", optional = true}

View file

@ -43,5 +43,5 @@ certifi==2023.7.22 # [TODO] clean up
aiohttp==3.9.0 # for network calls
aioboto3==12.3.0 # for async sagemaker calls
tenacity==8.2.3 # for retrying requests, when litellm.num_retries set
pydantic==2.7.1 # openai req.
pydantic==2.7.1 # proxy + openai req.
####