class

OpenAI::RealtimeBetaResponseUsageOutputTokenDetails

Inherits JSON::Serializable < Reference < Object

Details about the output tokens used in the Response.

Constructors

new(text_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 audio tokens used in the Response.

Source
audio_tokens=(audio_tokens : Int64 | Nil)

The number of audio tokens used in the Response.

Source
text_tokens

The number of text tokens used in the Response.

Source
text_tokens=(text_tokens : Int64 | Nil)

The number of text tokens used in the Response.

Source