OpenAICompletionTokensDetails

@Serializable
data class OpenAICompletionTokensDetails(val reasoningTokens: Int? = null, val audioTokens: Int? = null, val acceptedPredictionTokens: Int? = null, val rejectedPredictionTokens: Int? = null)

Breakdown of completion tokens in an OpenAI chat completion response.

See also

Constructors

Link copied to clipboard
constructor(reasoningTokens: Int? = null, audioTokens: Int? = null, acceptedPredictionTokens: Int? = null, rejectedPredictionTokens: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "accepted_prediction_tokens")
val acceptedPredictionTokens: Int?

Number of accepted predicted tokens.

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

Number of audio tokens in the completion.

Link copied to clipboard
@SerialName(value = "reasoning_tokens")
val reasoningTokens: Int?

Number of tokens used for internal reasoning.

Link copied to clipboard
@SerialName(value = "rejected_prediction_tokens")
val rejectedPredictionTokens: Int?

Number of rejected predicted tokens.