struct OpenAI::Usage

Included Modules

Extended Modules

Defined in:

open_ai/models/model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(total_tokens : Int64, prompt_tokens : Int64, completion_tokens : Int64) #

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

[View source]

Instance Method Detail

def completion_tokens : Int64 #

[View source]
def prompt_tokens : Int64 #

[View source]
def total_tokens : Int64 #

[View source]