stream
parameter to true
in the request body.
The following endpoints support streaming:
curl
. The response is a stream of server-sent events.
client.chat.stream
. Then, include all the same parameters as you would for a non-streaming chat completion request, except omit the stream
parameter.