StreamOptions

@Serializable
class StreamOptions(val includeUsage: Boolean)

Represents options that can be applied to a streaming request.

Constructors

Link copied to clipboard
constructor(includeUsage: Boolean)

Properties

Link copied to clipboard

If set, every chunk carries a usage field: null on the intermediate ones, and the token usage statistics for the whole request on the last content chunk — the one whose single choice adds no content and has a non-null finish_reason.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String