AI::OpenAI::CompletionTokensDetails
Inherits JSON::Serializable < Struct < Value < Object
Completion tokens details from OpenAI API.
Constructors
new(pull : JSON::PullParser)
Sourcenew(reasoning_tokens : Int32 | Nil = nil, accepted_prediction_tokens : Int32 | Nil = nil, rejected_prediction_tokens : Int32 | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
accepted_prediction_tokens
Sourcereasoning_tokens
Sourcerejected_prediction_tokens
Source