Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
openai
main
OpenAI
AuthenticationError
Client
Configuration
Message
Model
Usage
OpenAIError
RateLimitError
Openai
Generated using Crystal 1.10.1
2024-02-02 17:00:06 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
]