- Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Reported at #3678 (comment)
There, @kichanyurd asked:
is there a reason that it's not even 2.x?
We prefer to support a wide range of versions so that we don't force people to upgrade if they're not ready yet (i.e. may have other packages that require openai <2), but as they add new fields and types that's going to be increasingly difficult to maintain.
https://github.com/openai/openai-python/releases/tag/v2.0.0 suggests v2 has only a single subtle breaking change over v1, so I think I agree we can start pointing at the latest version, like we already do for the anthropic and google-genai packages.
Because some people may actually be stuck on openai <1 because of dependency ranges, pip will always install the latest version of pydantic-ai that claims to work with that version, which is now v1.30.0, which does not actually work. So I will release v1.30.1 that reverts #3678, and then reintroduce the feature in v1.31.0 that will also require the latest openai.
Edit: https://github.com/pydantic/pydantic-ai/releases/tag/v1.30.1