Usage

@Serializable
data class Usage(val promptTokens: Int? = null, val completionTokens: Int? = null, val totalTokens: Int? = null)

Constructors

Link copied to clipboard
constructor(promptTokens: Int? = null, completionTokens: Int? = null, totalTokens: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "completion_tokens")
val completionTokens: Int? = null

Count of completion tokens.

Link copied to clipboard
@SerialName(value = "prompt_tokens")
val promptTokens: Int? = null

Count of prompts tokens.

Link copied to clipboard
@SerialName(value = "total_tokens")
val totalTokens: Int? = null

Count of total tokens.