From 1487bf1ce5cd6ce963bdec6170de85494ef55327 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Mon, 22 Jul 2024 11:40:03 -0700 Subject: [PATCH] Add instructions to address pydantic v2 incompatibility (#713) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d6b47ba..cd6e6e65 100644 --- a/README.md +++ b/README.md @@ -468,7 +468,7 @@ gcloud run deploy [your-service-name] --source . --port 8001 --allow-unauthentic LangServe provides support for Pydantic 2 with some limitations. 1. OpenAPI docs will not be generated for invoke/batch/stream/stream_log when using - Pydantic V2. Fast API does not support [mixing pydantic v1 and v2 namespaces]. + Pydantic V2. Fast API does not support [mixing pydantic v1 and v2 namespaces]. To fix this, use `pip install pydantic==1.10.17`. 2. LangChain uses the v1 namespace in Pydantic v2. Please read the [following guidelines to ensure compatibility with LangChain](https://github.com/langchain-ai/langchain/discussions/9337)