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
responses.create has no stream argument, so the SDK cannot stream /v1/responses. The docs send streaming callers to the OpenAI SDK.
The gateway streams Responses events. For OpenAI channels the upstream event stream is passed through. For other providers the gateway builds the events itself (response.created, response.output_item.added, response.content_part.added, response.output_text.delta, ... response.completed) and ends with data: [DONE].
Fix:responses.create(stream=True) (sync and async) sends "stream": true and returns a Stream[ResponseStreamEvent].
Events keep their type and all fields.
The stream ends at [DONE], or at the end of the body when there is no [DONE].
An error event raises APIError.
The gateway's own events do not yet carry sequence_number or item_id, so those fields are optional.
Activity
Stream responses.create
theQuert commentedon Oct 7, 2026
Fixed by #17.