You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] /v1/chat/completions defaults to streaming when stream is omitted #5047
When calling the OpenAI-compatible /v1/chat/completions endpoint without explicitly specifying the stream parameter, the server appears to default to stream: true.
This behavior is not aligned with the OpenAI API convention, where omitting stream defaults to non-streaming (false).
As a result, OpenAI-compatible clients (e.g. .NET SDKs) that omit the stream field receive SSE (data:) responses instead of JSON, causing deserialization failures.
Activity
Imagineer99 commentedon Apr 16, 2026
Thanks for sharing, looks valid, I will investigate.
rolandtannous commentedon Apr 18, 2026
I will push a separate PR for this
studio/openai: align chat completions docstring with stream=false def…
studio/openai: address review — move unslothai#5047 ref out of OpenAP…