Class: OpenAI::Models::ImagesResponse::SvgUsage
Overview
Instance Attribute Summary collapse
#last_response
Instance Method Summary
collapse
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
Returns a new instance of SvgUsage.
202
203
204
205
206
207
208
|
# File 'sig/openai/models/images_response.rbs', line 202
def initialize: (
input_tokens: Integer,
model: String,
output_tokens: Integer,
reasoning_tokens: Integer,
total_tokens: Integer
) -> void
|
Instance Attribute Details
180
|
# File 'lib/openai/models/images_response.rb', line 180
required :input_tokens, Integer
|
#model ⇒ String
185
|
# File 'lib/openai/models/images_response.rb', line 185
required :model, String
|
#output_tokens ⇒ Integer
190
|
# File 'lib/openai/models/images_response.rb', line 190
required :output_tokens, Integer
|
#reasoning_tokens ⇒ Integer
195
|
# File 'lib/openai/models/images_response.rb', line 195
required :reasoning_tokens, Integer
|
#total_tokens ⇒ Integer
200
|
# File 'lib/openai/models/images_response.rb', line 200
required :total_tokens, Integer
|
Instance Method Details
#to_hash ⇒ { input_tokens: Integer, model: String, output_tokens: Integer, reasoning_tokens: Integer, total_tokens: Integer }
210
211
212
213
214
215
216
|
# File 'sig/openai/models/images_response.rbs', line 210
def to_hash: -> {
input_tokens: Integer,
model: String,
output_tokens: Integer,
reasoning_tokens: Integer,
total_tokens: Integer
}
|