Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
openai
v0.0.1
OpenAI
AuthenticationError
Client
Configuration
Model
Usage
OpenAIError
RateLimitError
Openai
Built with Crystal 1.9.2
2023-10-07 11:16:07 UTC
class
OpenAI::Model::Usage
OpenAI::Model::Usage
Reference
Object
Included Modules
JSON::Serializable
Defined in:
openai/model.cr
Constructors
.new
(pull : JSON::PullParser)
Instance Method Summary
#total_tokens
: Int32
#total_tokens=
(total_tokens : Int32)
Constructor Detail
def self.
new
(pull : JSON::PullParser)
#
[
View source
]
Instance Method Detail
def
total_tokens
: Int32
#
[
View source
]
def
total_tokens=
(total_tokens : Int32)
#
[
View source
]