struct
AI::OpenAI::OpenAIChatCompletionTokensDetails
- AI::OpenAI::OpenAIChatCompletionTokensDetails
- Struct
- Value
- Object
Overview
Completion tokens details.
Included Modules
- JSON::Serializable
Defined in:
ai/openai/chat/openai_chat_api.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)
#