Module: OpenAI::Models::ImagesResponse::Size

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/images_response.rb,
sig/openai/models/images_response.rbs

Overview

The image dimensions as a WIDTHxHEIGHT string, for example 1536x864.

See Also:

  • OpenAI::Models::ImagesResponse#size

collapse

SIZE_1024X1024 =

Returns:

  • ("1024x1024")
"1024x1024"
SIZE_1024X1536 =

Returns:

  • ("1024x1536")
"1024x1536"
SIZE_1536X1024 =

Returns:

  • ("1536x1024")
"1536x1024"

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Class Method Details

.values ⇒ Array<String>

Preserve the enum helper available before arbitrary strings were supported.

Returns:

  • (Array<String>)


172
# File 'lib/openai/models/images_response.rb', line 172

def self.values = [SIZE_1024X1024, SIZE_1024X1536, SIZE_1536X1024]

.variants ⇒ Array(String)

Returns:

  • (Array(String))


157
158
159
# File 'lib/openai/models/images_response.rb', line 157

define_sorbet_constant!(:Variants) do
  T.type_alias { String }
end