struct

AI::OpenAI::PromptTokensDetails

Inherits JSON::Serializable < Struct < Value < Object

Prompt tokens details from OpenAI API.

Constructors

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

Instance methods

cached_tokens
Source