stream
parameter to true
in the request body.
The following endpoints support streaming:
curl
. The response is a stream of server-sent events.
choices[0].delta.content
. See the Generate chat completions guide for the full streaming response object.client.chat.stream
. Then, include all the same parameters as you would for a non-streaming chat completion request, except omit the stream
parameter.