Skip to content

Conversation

CuberMessenger
Copy link

This fix adds support for showing the FastAPI docs with pydantic v2; the code is also compatible with pydantic v1.

See langchain-ai/langchain#32097 for the details of the problem.

In short, pydantic v1 uses Annotated[Model, Model] style, while the new version (v2) prefers Annotated[Model, Body(...)] for optional fields.

Copy link

cla-bot bot commented Aug 18, 2025

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the username @CuberMessenger on file. In order for us to review and merge your code, please complete the Individual Contributor License Agreement here https://forms.gle/AQFbtkWRoHXUgipM6 .

This process is done manually on our side, so after signing the form one of the maintainers will add you to the contributors list.

For more details about why we have a CLA and other contribution guidelines please see: https://github.com/langchain-ai/langserve/blob/main/CONTRIBUTING.md.

Copy link

cla-bot bot commented Sep 11, 2025

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the username @CuberMessenger on file. In order for us to review and merge your code, please complete the Individual Contributor License Agreement here https://forms.gle/AQFbtkWRoHXUgipM6 .

This process is done manually on our side, so after signing the form one of the maintainers will add you to the contributors list.

For more details about why we have a CLA and other contribution guidelines please see: https://github.com/langchain-ai/langserve/blob/main/CONTRIBUTING.md.

duodecanol added a commit to KantoRegion/langserve that referenced this pull request Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant