struct OpenAI::Usage
inherits Struct
#
Included modules
JSON::Serializable
OpenAI::Usage
Struct
#JSON::Serializable
.new(prompt_tokens : Int32, total_tokens : Int32, completion_tokens : Int32 | Nil = nil)
##completion_tokens : Int32 | ::Nil
##copy_with(prompt_tokens _prompt_tokens = @prompt_tokens, total_tokens _total_tokens = @total_tokens, completion_tokens _completion_tokens = @completion_tokens)
##prompt_tokens : Int32
##total_tokens : Int32
#