Chunk

data class Chunk(val id: String, val objectType: String = "chat.completion.chunk", val created: Long, val model: String, val serviceTier: String? = null, val systemFingerprint: String, val usage: Usage? = null, val choices: List<Choice>)(source)

Represents a chunk of a streaming response.

Constructors

Link copied to clipboard
constructor(id: String, objectType: String = "chat.completion.chunk", created: Long, model: String, serviceTier: String? = null, systemFingerprint: String, usage: Usage? = null, choices: List<Choice>)

Properties

Link copied to clipboard

The list of completion choices in this chunk.

Link copied to clipboard

The timestamp when this chunk was created.

Link copied to clipboard
val id: String

The unique identifier for this chunk.

Link copied to clipboard

The model used to generate this chunk.

Link copied to clipboard

The type of the object, always "chat.completion.chunk".

Link copied to clipboard
@SerialName(value = "service_tier")
val serviceTier: String?

Optional service tier information.

Link copied to clipboard
@SerialName(value = "system_fingerprint")
val systemFingerprint: String

The system fingerprint.

Link copied to clipboard
val usage: Usage?

Optional usage statistics for this chunk.