OpenAI::RealtimeResponseUsageInputTokenDetails
Inherits JSON::Serializable < Reference < Object
Details about the input tokens used in the Response. Cached tokens are tokens from previous turns in the conversation that are included as context for the current response. Cached tokens here are counted as a subset of input tokens, meaning input tokens will include cached and uncached tokens.
Constructors
new(pull : JSON::PullParser)
Sourcenew(cached_tokens : Int64 | Nil = nil, text_tokens : Int64 | Nil = nil, image_tokens : Int64 | Nil = nil, audio_tokens : Int64 | Nil = nil, cached_tokens_details : RealtimeResponseUsageInputTokenDetailsCachedTokensDetails | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
The number of audio tokens used as input for the Response.
The number of cached tokens used as input for the Response.
cached_tokens_details=(cached_tokens_details : RealtimeResponseUsageInputTokenDetailsCachedTokensDetails | Nil)
Details about the cached tokens used as input for the Response.
The number of image tokens used as input for the Response.