Compare commits

...

1 Commits

Author SHA1 Message Date
Eugene Yurtsev e8d392fec0 Update README.md 2024-09-16 11:57:43 -04:00
+1 -1
View File
@@ -475,7 +475,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]. To fix this, use `pip install pydantic==1.10.17`.
Pydantic V2 and LangServe <= 0.2.0. Fast API does not support [mixing pydantic v1 and v2 namespaces]. To fix this, please upgrade langserve to 0.3 or downgrade pydantic to pydantic 1 `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)