mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-25 13:15:44 -04:00
Compare commits
1 Commits
main
...
eyurtsev-patch-4
| Author | SHA1 | Date | |
|---|---|---|---|
| e8d392fec0 |
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user