TextCompletion

@Serializable
data class TextCompletion(val id: String, val created: Long, val model: ModelId, val choices: List<Choice>, val usage: Usage? = null)

An object containing a response from the completion api.

documentation

Constructors

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

Properties

Link copied to clipboard

A list of generated completions

Link copied to clipboard

The creation time in epoch milliseconds.

Link copied to clipboard
val id: String

A unique id assigned to this completion

Link copied to clipboard

The GPT-3 model used

Link copied to clipboard
val usage: Usage? = null

Text completion usage data.