OpenAIPromptTokensDetails

@Serializable
data class OpenAIPromptTokensDetails(val cachedTokens: Int? = null, val audioTokens: Int? = null)

Breakdown of prompt tokens in an OpenAI chat completion response.

See also

Constructors

Link copied to clipboard
constructor(cachedTokens: Int? = null, audioTokens: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "audio_tokens")
val audioTokens: Int?

Number of audio tokens in the prompt.

Link copied to clipboard
@SerialName(value = "cached_tokens")
val cachedTokens: Int?

Number of tokens retrieved from the prompt cache.