mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-30 18:33:40 +00:00
Update pydantic_compatibility.md (#9382)
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
This commit is contained in:
parent
df8e35fd81
commit
b58d492e05
@ -7,14 +7,14 @@
|
|||||||
|
|
||||||
## LangChain Pydantic Migration Plan
|
## LangChain Pydantic Migration Plan
|
||||||
|
|
||||||
Langchain will carry out the migration to pydantic v2 in two steps:
|
LangChain will carry out the migration to pydantic v2 in two steps:
|
||||||
|
|
||||||
1. 2023-08-17: LangChain will allow users to install either Pydantic V1 or V2.
|
1. 2023-08-17: LangChain will allow users to install either Pydantic V1 or V2.
|
||||||
* Internally LangChain will continue to [use V1](https://docs.pydantic.dev/latest/migration/#continue-using-pydantic-v1-features).
|
* Internally LangChain will continue to [use V1](https://docs.pydantic.dev/latest/migration/#continue-using-pydantic-v1-features).
|
||||||
* During this time, users can pin their pydantic version to v1 to avoid breaking changes, or start a partial
|
* During this time, users can pin their pydantic version to v1 to avoid breaking changes, or start a partial
|
||||||
migration using pydantic v2 throughout their code, but avoiding mixing v1 and v2 code for LangChain (see below).
|
migration using pydantic v2 throughout their code, but avoiding mixing v1 and v2 code for LangChain (see below).
|
||||||
|
|
||||||
2. 2023-08-25: Langchain will migrate internally to using V2 code.
|
2. 2023-08-25: LangChain will migrate internally to using V2 code.
|
||||||
* Users will have to upgrade to V2 as well to use LangChain.
|
* Users will have to upgrade to V2 as well to use LangChain.
|
||||||
* Users should stop using the `pydantic.v1` namespace when using LangChain.
|
* Users should stop using the `pydantic.v1` namespace when using LangChain.
|
||||||
* See the [bump-pydantic package](https://github.com/pydantic/bump-pydantic) to help with the upgrade process.
|
* See the [bump-pydantic package](https://github.com/pydantic/bump-pydantic) to help with the upgrade process.
|
||||||
|
Loading…
Reference in New Issue
Block a user