class

OpenAI::SpeechAudioDoneEventUsage

Inherits JSON::Serializable < Reference < Object

Token usage statistics for the request.

Constructors

new(input_tokens : Int64 = 0, output_tokens : Int64 = 0, total_tokens : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

input_tokens

Number of input tokens in the prompt.

Source
input_tokens=(input_tokens : Int64)

Number of input tokens in the prompt.

Source
output_tokens

Number of output tokens generated.

Source
output_tokens=(output_tokens : Int64)

Number of output tokens generated.

Source
total_tokens

Total number of tokens used (input + output).

Source
total_tokens=(total_tokens : Int64)

Total number of tokens used (input + output).

Source