StreamOptions

@Serializable
class StreamOptions(val includeOptions: Boolean)

Represents options that can be applied to a streaming request.

Constructors

Link copied to clipboard
constructor(includeOptions: Boolean)

Properties

Link copied to clipboard

If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.

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