-
Notifications
You must be signed in to change notification settings - Fork 19.3k
chore(langchain): fix deprecation warnings #32379
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
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CodSpeed WallTime Performance ReportMerging #32379 will not alter performanceComparing
|
CodSpeed Instrumentation Performance ReportMerging #32379 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes Pydantic v1 compatibility code and deprecation warnings to modernize the LangChain codebase. The changes focus on cleaning up legacy Pydantic patterns that are no longer needed.
- Removes mypy configuration that was treating deprecation warnings as notes
- Eliminates Pydantic v1 compatibility checks and fallback methods
- Updates method calls to use modern Pydantic v2 equivalents
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
pyproject.toml |
Removes mypy config for deprecation warning handling |
utils/pydantic.py |
Adds type ignore comment for deprecated import |
output_parsers/yaml.py |
Removes Pydantic v1 compatibility checks for validation and schema methods |
chains/openai_functions/qa_with_structure.py |
Removes fallback to legacy schema() method |
chains/openai_functions/citation_fuzzy_match.py |
Removes fallback to legacy schema() method |
chains/base.py |
Updates deprecated dict() method to modern model_dump() |
892d53a
to
6a765e1
Compare
No description provided.