-
Notifications
You must be signed in to change notification settings - Fork 16.1k
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
Upgrade to Pydantic v2 #8330
Upgrade to Pydantic v2 #8330
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
This is really only blocked by dependencies so until those get resolved (they’re all linked in the description), not much I can do to finalize this PR :(
If you wanna go tackle the chromadb issue or the steamship issue, both have maintainers interested in getting fixes in. Spacy doesn’t look like it’ll be getting a fix anytime soon so pending langchain completely removing the dependency, it’ll be blocked on that getting fixed as well :(
There’s a half solution that could be done to unpin the version and implement a try, catch over every pydantic import to try for the v1 import so v2 can at least be resolved by poetry but it’ll mean all dependencies blocking pure v2 will throw errors.
…
On Aug 1, 2023 at 10:52 AM, <Altay Sansal ***@***.***)> wrote:
any luck pushing this forward? if you can give some history/roadmap/todo I can see if there is anything I can help with :)
—
Reply to this email directly, view it on GitHub (#8330 (comment)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ABR2SQIEIUISWCA2PS3HBBLXTEJZPANCNFSM6AAAAAA2ZKLVKU).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Looks like they actually merged Pydantic v2 support and it's available starting with v3.6.1 |
v2 should be supported as of langchain==0.0.267, we'd love to hear if that's working for folks. See #9337 for more detailed info. |
@srhinos thank you for the PR! Handled via v1/v2 compatibility for now |
This PR should encompass (most of) the changes needed to support Pydantic v2
Relevant Issue: #6841
Dependency wise, had to bump Pydantic (ofc) and
autodoc-pydantic
which has a yanked 2.0.0 pypi deploy which is being used as a Release Candidate for pydantic v2 support.Currently, the following deps are preventing poetry from resolving a lock file:
@baskaryan
Opened as a draft because until poetry resolves the lock file and downstream packages get resolved, it shouldn't be merged.
Also since PR guidelines suggests, twitter handle is SexualRhino_