n
parameter from the request.
Each response includes the following members.stream = true
in the request will return a stream of messages, each containing one token. You can read more about streaming calls using the SDK.
The final message will be data: [DONE]
. All other messages will have data
set to a JSON object with the following fields:
{"role":"assistant"}
.{"content": **token**}
with the generated token.usage
will be null
except for the last chunk which contains the token usage statistics for the entire request.