mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-16 09:34:30 -04:00
Cannot use POST requests #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MohammedShokr on GitHub (Nov 11, 2023).
I'm currently in the process of familiarizing myself with Langserve and am actively exploring its functionalities. In my attempt to run the provided examples, I've encountered an issue specifically related to routes utilizing POST requests, such as
/invoke,/stream, and/batch. Unfortunately, despite my efforts, I'm unable to interact with these routes successfully. Notably, the only routes accessible to me are of the GET type, as depicted in the attached image for reference. Your guidance on resolving this matter would be greatly appreciated.P.S. I've experimented with various examples from diverse sources, yet the persistent issue remains consistent across all instances.
@eyurtsev commented on GitHub (Nov 11, 2023):
Hi @MohammedShokr,
Please see the section on pydantic compatibility in the README.
The API endpoints are up, but docs won't be generated for them with pydantic v2.
You can use pydantic 1, or use requests/curl to post or use the RemoteRunnable client to interact with invoke/batch/stream etc.
Hope this helps!