Skip to main content
Method: client.createChatCompletion(...)

Streaming

streamResponse and rawClient().requestLines return SSE lines as they arrive. Close the stream with try-with-resources and handle event names, data lines, and completion markers in your application.
Last modified on October 18, 2026