Module: OpenAI::Models::Beta::BetaResponseInputItem::ImageGenerationCall::Size

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/beta_response_input_item.rb

Overview

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

See Also:

  • OpenAI::Models::Beta::BetaResponseInputItem::ImageGenerationCall#size

collapse

SIZE_1024X1024 =
:"1024x1024"
SIZE_1024X1536 =
:"1024x1536"
SIZE_1536X1024 =
:"1536x1024"

Class Method Summary collapse

Methods included from Internal::Type::Union

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

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_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(String, Symbol)

Returns:

  • (Array(String, Symbol))


1514
1515
1516
1517
1518
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1514

define_sorbet_constant!(:Variants) do
  T.type_alias {
    T.any(String, OpenAI::Beta::BetaResponseInputItem::ImageGenerationCall::Size::TaggedSymbol)
  }
end