Skip to main content
Open on GitHub

How to use LangChain with different Pydantic versions

As of the 0.3 release, LangChain uses Pydantic 2 internally.

Users should install Pydantic 2 and are advised to avoid using the pydantic.v1 namespace of Pydantic 2 with LangChain APIs.

If you're working with prior versions of LangChain, please see the following guide on Pydantic compatibility.


Was this page helpful?

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy