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
Returns a collection of OpenAIChoice data, with delta messages.
Overridden properties
Property
Type
Description
success
Boolean
Returns True if the streaming data was successfully decoded as an object.
terminated
Boolean
A Boolean indicating whether the HTTP request was terminated. ie onTerminate called.
usage
Object
Returns token usage information from the stream data (only available in the final chunk when stream_options.include_usage is set to True).
usage
The usage property returns an object containing token usage information, available only in the final streaming chunk when enabled via stream_options.include_usage: True in the request parameters.
Note: To receive usage information in streaming responses, you must set stream_options: {include_usage: True} in your request parameters. See OpenAIChatCompletionsParameters for details.