ChatResponse

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

Represents a response to a chat completion request.

Constructors

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

Properties

Link copied to clipboard

The list of completion choices.

Link copied to clipboard

The timestamp when this response was created.

Link copied to clipboard
val id: String

The unique identifier for this response.

Link copied to clipboard

The model used to generate this response.

Link copied to clipboard

The type of the object, always "chat.completions".

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?

Optional system fingerprint.

Link copied to clipboard

Usage statistics for this response.