Repository navigation
docs(readme): document streaming error behavior parity - #140
Merged
Merged
Conversation
inference-gateway-maintainer
Bot
marked this pull request as ready for review
September 25, 2026 23:57
4 tasks
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Sep 26, 2026
## [0.21.1](v0.21.0...v0.21.1) (2026-09-26) ### 🐛 Bug Fixes * **client:** carry HTTP status and error body into InferenceGatewayAPIError ([#139](#139)) ([d58a54f](d58a54f)) * **client:** close requests Session in close() and apply timeout to streaming calls ([#138](#138)) ([4a1e48f](4a1e48f)) * **client:** route health_check and proxy_request to root-level routes ([#136](#136)) ([ec782ca](ec782ca)) ### 📚 Documentation * **readme:** correct MCP_ENABLED env var, provider list, vision reference, and images example ([#137](#137)) ([8cc2ef6](8cc2ef6)) * **readme:** document streaming error behavior parity ([#140](#140)) ([23a1d69](23a1d69)) ### 🔧 Miscellaneous * **deps:** bump claude-code 2.1.278 -> 2.1.280 ([#130](#130)) ([2a73e16](2a73e16)) * **deps:** bump infer CLI v0.205.3 -> v0.208.0 ([#131](#131)) ([703f184](703f184))
Contributor
|
🎉 This PR is included in version 0.21.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves inference-gateway/docs#794
Summary
The README "Error Handling" section now states how the three streaming methods behave on error, matching the non-streaming behavior: on HTTP errors they raise
InferenceGatewayAPIErrorwithstatus_codeandresponse_datapopulated on both therequestsandhttpxbackends, and connection failures raiseInferenceGatewayError. A short streaming try/except snippet mirrors the existing non-streaming example.Changes
create_chat_completion_stream,create_response_streamandcreate_message_streamraiseInferenceGatewayAPIError(withstatus_codeandresponse_data) on HTTP errors andInferenceGatewayErroron connection failures, on both therequestsandhttpxbackendsVerification
inference_gateway/client.pyfor both backends