langserve icon indicating copy to clipboard operation
langserve copied to clipboard

Improve error information

Open eyurtsev opened this issue 1 year ago • 0 comments
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

eyurtsev avatar Feb 14 '24 21:02 eyurtsev