class

OpenAI::CompletionUsagePromptTokensDetails

Inherits JSON::Serializable < Reference < Object

Breakdown of tokens used in the prompt.

Constructors

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

Instance methods

audio_tokens

Audio input tokens present in the prompt.

Source
audio_tokens=(audio_tokens : Int64 | Nil)

Audio input tokens present in the prompt.

Source
cached_tokens

Cached tokens present in the prompt.

Source
cached_tokens=(cached_tokens : Int64 | Nil)

Cached tokens present in the prompt.

Source