You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In streaming mode the OpenAI chat completion has a new parameter to include Usage information after the Chunks. You just add a { "include_usage": true } to the request.
In streaming mode the OpenAI chat completion has a new parameter to include Usage information after the Chunks. You just add a
{ "include_usage": true }
to the request.Then the final chunks will look like this:
The final chunk contains no choices, but a
usage
:This usage is over all the generations from this stream.
The text was updated successfully, but these errors were encountered: