struct AI::OpenAI::OpenAIChatCompletionTokensDetails

Overview

Completion tokens details.

Included Modules

Defined in:

ai/openai/chat/openai_chat_api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(reasoning_tokens : Int32 | Nil = nil, accepted_prediction_tokens : Int32 | Nil = nil, rejected_prediction_tokens : Int32 | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def accepted_prediction_tokens : Int32 | Nil #

[View source]
def reasoning_tokens : Int32 | Nil #

[View source]
def rejected_prediction_tokens : Int32 | Nil #

[View source]