OpenAI::Usage
Inherits JSON::Serializable / Struct / Value / Object
Usage statistics for the total token usage per completion request
Constructors
new(prompt_tokens : Int32, completion_tokens : Int32, total_tokens : Int32)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
Source