mirror of https://github.com/hwchase17/langchain
Create pydantic v1 namespace, add partial compatibility for pydantic v2 (#9123)
First of a few PRs to add full compatibility to both pydantic v1 and v2. This PR creates pydantic v1 namespace and adds it to sys.modules. Upcoming changes: 1. Handle `openapi-schema-pydantic = "^1.2"` and dependent chains/tools 2. bump dependencies to versions that are cross compatible for pydantic or remove them (see below) 3. Add tests to github workflows to test with pydantic v1 and v2 **Dependencies** From a quick look (could be wrong since was done manually) **dependencies pinning pydantic below 2** (some of these can be bumped to newer versions are provide cross-compatible code) anthropic bentoml confection fastapi langsmith octoai-sdk openapi-schema-pydantic qdrant-client spacy steamship thinc zep-python Unpinned marqo (*) nomic (*) xinference(*)pull/9203/head
parent
8189dea0d8
commit
c172f972ea
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue