Skip to main content
Almost all chat models can stream a response, returning text as they generate it. Set stream to true to stream a chat response:
The client must read the response as a stream. In JavaScript, for example, listen for events with EventSource.