-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[serve] Investigate if serve/fastapi works with pydantic>=2.0
#37372
Comments
Basic serve tests are failing due to pydantic API changes:
Updating that to add the suggested flag, I then get:
|
Hi @edoakes & @shrekris-anyscale , how is the traceback related to the fastapi? (I am seeing @shrekris-anyscale add version control to fastapi) |
sync offline with @shrekris-anyscale, trying to not add any version control for fastapi. |
ref #40451 |
We've merged the changes to make Ray compatible with Pydantic 2.5+. You can start using Pydantic 2.5+ with Ray 2.9, which should be out at the end of December. These changes should also be in the Ray nightly, so feel free to try them out! |
Pydantic 2.0 broke compatibility with Ray (see #37019), so we currently have
pydantic<2.0
pinned in our dependencies.There is a fix for Ray core that will get cherry-picked to Ray 2.6: #37055, but there may be an issue between FastAPI and pydantic that would prevent us from removing the pin.
Someone from the Serve team needs to investigate if Serve/FastAPI will work with
pydantic>=2.0
after the above fix is merged.The first step is likely running the CI tests with pydantic pinned to the most recent version.
The outcome of this is a decision between:
pydantic>=2.0
works with both core and serve.pydantic>=2.0
.(2) is the more conservative option which we should go with by default if we are unsure.
The text was updated successfully, but these errors were encountered: