Skip to main content
Set stream: true to receive Server-Sent Events. Responses emits typed events; Chat Completions emits chunks with choices[].delta. Their consumers are not interchangeable.
Common text events include response.created, response.output_text.delta, response.completed, and error.
A Chat Completions choices[0].delta parser will not parse Responses events, and a Responses event-type parser will not parse Chat Completions chunks.
Handle disconnects, timeouts, terminal events, and partial tool arguments without infinite retries.
Last modified on August 12, 2026