You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LANGSERVE: ⚠️ Using pydantic 2.6.4. OpenAPI docs for invoke, batch, stream, stream_log endpoints will not be generated. API endpoints and playground should work as expected. If you need to see the docs, you can downgrade to pydantic 1. For example, pip install pydantic==1.10.13. See fastapi/fastapi#10360 for details.
I use pydantic 2.6.4 to run this,but web and doc both not work!
The text was updated successfully, but these errors were encountered:
@555chy you can support documentation on your own by providing a second implementation for the endpoints and declaring its documentation as a workaround. We're not going to provide an adapter here since it's on FastAPIs road-map and that seems like the easiest place to support it. LangChain itself will be upgrading entirely to pydantic v2 around 2024 July.
eyurtsev
changed the title
why not adapter pydantic 2 ?
Why is pydantic 2 not supported for open api doc generation?
Apr 12, 2024
LANGSERVE:⚠️ Using pydantic 2.6.4. OpenAPI docs for invoke, batch, stream, stream_log endpoints will not be generated. API endpoints and playground should work as expected. If you need to see the docs, you can downgrade to pydantic 1. For example,
pip install pydantic==1.10.13
. See fastapi/fastapi#10360 for details.I use pydantic 2.6.4 to run this,but web and doc both not work!
The text was updated successfully, but these errors were encountered: