From 6b1a0d97efd5e63fea3734a8957f4608a235d546 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Mon, 16 Sep 2024 11:56:41 -0400 Subject: [PATCH] Update README (#769) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ec0bba55..6129fe67 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,8 @@ be better suited for deploying LangGraph applications. ## Limitations - Client callbacks are not yet supported for events that originate on the server -- OpenAPI docs will not be generated when using Pydantic V2. Fast API does not - support [mixing pydantic v1 and v2 namespaces](https://github.com/tiangolo/fastapi/issues/10360). - See section below for more details. +- Versions of LangServe <= 0.2.0, will not generate OpenAPI docs properly when using Pydantic V2 as Fast API does not support [mixing pydantic v1 and v2 namespaces](https://github.com/tiangolo/fastapi/issues/10360). + See section below for more details. Either upgrade to LangServe>=0.3.0 or downgrade Pydantic to pydantic 1. ## Security @@ -208,8 +207,9 @@ app.add_middleware( If you've deployed the server above, you can view the generated OpenAPI docs using: -> ⚠️ If using pydantic v2, docs will not be generated for _invoke_, _batch_, _stream_, +> ⚠️ If using LangServe <= 0.2.0 and pydantic v2, docs will not be generated for _invoke_, _batch_, _stream_, > _stream_log_. See [Pydantic](#pydantic) section below for more details. +> To resolve please upgrade to LangServe 0.3.0. ```sh curl localhost:8000/docs