mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-18 10:54:29 -04:00
[PR #83] [MERGED] Start handling errors on stream/astream/astream_log #334
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?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langserve/pull/83
Author: @eyurtsev
Created: 10/20/2023
Status: ✅ Merged
Merged: 10/20/2023
Merged by: @eyurtsev
Base:
main← Head:eugene/handle_errors📝 Commits (5)
d538c4cx1b8f23fxe98a861x17f3da4x6f9bfeex📊 Changes
3 files changed (+259 additions, -40 deletions)
View changed files
📝
langserve/client.py(+62 -5)📝
langserve/server.py(+73 -29)📝
tests/unit_tests/test_server_client.py(+124 -6)📄 Description
This PR introduces error handling for stream/astream/astream_log endpoints.
The error handling is incomplete as client side errors aren't handled yet.
In addition this PR, proposes that the client with log an error instead of
raising when encountering an unsupported event. This will allow us to ship
additional events without breaking older clients. Useful for sending over
callback events.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.