ChatCompletion

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

Represents the Chat Completion.

Constructors

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

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.

Link copied to clipboard
val id: String

A unique identifier for the chat completion.

Link copied to clipboard

The model used for the chat completion.

Link copied to clipboard

The object type, which is always chat.completion.

Link copied to clipboard

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

Link copied to clipboard

Usage statistics for the completion request.

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