struct

AI::OpenAI::CompletionTokensDetails

Inherits JSON::Serializable < Struct < Value < Object

Completion tokens details from OpenAI API.

Constructors

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

Instance methods

accepted_prediction_tokens
Source
reasoning_tokens
Source
rejected_prediction_tokens
Source