langserve
langserve copied to clipboard
Improve error information
trafficstars
We're surfacing default error messages from Fast API / pydantic.
These messages are hard to understand; e.g., https://github.com/efriis/langchain-perplexaty/issues/2
We should investigate whether we can add an interceptor for exceptions to re-write the exceptions and make them easier to understand.
This should only affect endpoints that were added using add_routes without affecting any other endpoints