Crig::Providers::Cohere::BilledUnits
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(output_tokens : Float64 | Nil = nil, classifications : Float64 | Nil = nil, search_units : Float64 | Nil = nil, input_tokens : Float64 | Nil = nil)
Sourcenew(input_tokens : Int32 = 0, output_tokens : Int32 = 0, search_units : Int32 = 0, classifications : Int32 = 0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
classifications
Sourceinput_tokens
Sourceoutput_tokens
Sourcesearch_units
Source