Skip to content

Conversation

@jyork03
Copy link
Contributor

@jyork03 jyork03 commented Nov 5, 2025

Fixes a bug where self.stream was referenced before being initialized when the request body fails to parse.

On JSONDecodeError, we now always return a non-stream JSON error response since streaming preference cannot be trusted without a parsed body.

This prevents potential exceptions during error handling.

Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@yiakwy-xpu-ml-framework-team

@jyork03 @awni this has been fixed in #589

@awni awni merged commit f6c9465 into ml-explore:main Nov 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants