-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Pydantic 2 #180
Merged
Pydantic 2 #180
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…lt None value to pass validation
This will be put on hold for a while. LangChain should support v1 through end of year to give other projects like Chroma the time to migrate. There will likely be some bit-rot in that time but this was only 1 day of work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
LangChain
.0.0.268
enabled Pydantic 2 but supports v1 and v2. This PR updates IX to pydantic 2.Langchain is not forcing v2 yet but trying to stay ahead of the game here.
Changes
How Tested
@moderator
@pirate
- memory sessions@code
- openai functions, artifact memory@klarna
/@botsmith
: openAPI functions@wikipedia
- openai functions agent@retrieval
- retrieval componentsTODOs
chromdb==0.4.6
does not support pydantic2. This is a blocker for upgrade unless a workaround can be found.OpenAPI chains aren't compatible with pydantic2 yet because
OpenAPISpec
doesn't yet have support:Error
Upstream fix: Pydantic v2 support for OpenAPI Specs langchain-ai/langchain#11936