From f3b9c4310698665e6cfbaf8d9a3e4a99362db0d1 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Mon, 16 Sep 2024 13:22:26 -0400 Subject: [PATCH] Update README.md (#771) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6129fe67..1ec5fd8f 100644 --- a/README.md +++ b/README.md @@ -472,7 +472,9 @@ gcloud run deploy [your-service-name] --source . --port 8001 --allow-unauthentic ## Pydantic -LangServe provides support for Pydantic 2 with some limitations. +LangServe>=0.3 fully supports Pydantic 2. + +If you're using an earlier version of LangServe (<= 0.2), then please note that support for Pydantic 2 has the following 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]. To fix this, use `pip install pydantic==1.10.17`.