langchain
c172f972 - Create pydantic v1 namespace, add partial compatibility for pydantic v2 (#9123)

Commit
2 years ago
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(*)
Author
Parents
Loading