struct
AI::OpenAI::CompletionTokensDetails
- AI::OpenAI::CompletionTokensDetails
- Struct
- Value
- Object
Overview
Completion tokens details from OpenAI API.
Included Modules
- JSON::Serializable
Defined in:
ai/openai/chat/convert_openai_chat_usage.crConstructors
- .new(pull : JSON::PullParser)
- .new(reasoning_tokens : Int32 | Nil = nil, accepted_prediction_tokens : Int32 | Nil = nil, rejected_prediction_tokens : Int32 | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #accepted_prediction_tokens : Int32 | Nil
- #reasoning_tokens : Int32 | Nil
- #rejected_prediction_tokens : Int32 | Nil
Constructor Detail
def self.new(reasoning_tokens : Int32 | Nil = nil, accepted_prediction_tokens : Int32 | Nil = nil, rejected_prediction_tokens : Int32 | Nil = nil)
#