class

OpenAI::BatchUsageInputTokensDetails

Inherits JSON::Serializable < Reference < Object

A detailed breakdown of the input tokens.

Constructors

new(cached_tokens : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cached_tokens

The number of tokens that were retrieved from the cache. More on prompt caching.

Source
cached_tokens=(cached_tokens : Int64)

The number of tokens that were retrieved from the cache. More on prompt caching.

Source