ChatCompletionChunk

@Serializable
class ChatCompletionChunk(val id: String, val choices: List<ChatChoiceChunk>, val created: Long, val model: String, val systemFingerprint: String, val object: String, val usage: Usage? = null)

Constructors

Link copied to clipboard
constructor(id: String, choices: List<ChatChoiceChunk>, created: Long, model: String, systemFingerprint: String, object: String, usage: Usage? = null)

Properties

Link copied to clipboard

A list of chat completion choices.

Link copied to clipboard

The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.

Link copied to clipboard
val id: String

A unique identifier for the chat completion. Each chunk has the same ID.

Link copied to clipboard

The model to generate the completion.

Link copied to clipboard

The object type, which is always chat.completion.chunk.

Link copied to clipboard

This fingerprint represents the backend configuration that the model runs with.

Link copied to clipboard
val usage: Usage? = null

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