class

OpenAI::RealtimeResponseUsageInputTokenDetailsCachedTokensDetails

Inherits JSON::Serializable < Reference < Object

Details about the cached tokens used as input for the Response.

Constructors

new(text_tokens : Int64 | Nil = nil, image_tokens : Int64 | Nil = nil, audio_tokens : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

audio_tokens

The number of cached audio tokens used as input for the Response.

Source
audio_tokens=(audio_tokens : Int64 | Nil)

The number of cached audio tokens used as input for the Response.

Source
image_tokens

The number of cached image tokens used as input for the Response.

Source
image_tokens=(image_tokens : Int64 | Nil)

The number of cached image tokens used as input for the Response.

Source
text_tokens

The number of cached text tokens used as input for the Response.

Source
text_tokens=(text_tokens : Int64 | Nil)

The number of cached text tokens used as input for the Response.

Source