Class: OpenAI::Models::ImageGenerateParams::Svg

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/image_generate_params.rb,
sig/openai/models/image_generate_params.rbs

Defined Under Namespace

Classes: Reasoning

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_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

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

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initialize(model:, reasoning: nil) ⇒ Svg

Returns a new instance of Svg.

Parameters:

  • model —

    Model used to author the SVG. Required when SVG model selection is enabled.

  • reasoning (defaults to: nil) —

    Reasoning settings for the SVG author, independent of image complexity. Omitted or null effort uses the author model's default. Supported efforts depend on the selected author model.

  • model: (String)
  • reasoning: (OpenAI::ImageGenerateParams::Svg::Reasoning, nil) (defaults to: nil)


# File 'lib/openai/models/image_generate_params.rb', line 534

Instance Attribute Details

#model ⇒ String

Model used to author the SVG. Required when SVG model selection is enabled.

Returns:

  • (String)


524
# File 'lib/openai/models/image_generate_params.rb', line 524

required :model, String

#reasoning ⇒ OpenAI::ImageGenerateParams::Svg::Reasoning?

Reasoning settings for the SVG author, independent of image complexity. Omitted or null effort uses the author model's default. Supported efforts depend on the selected author model.

Returns:

  • (OpenAI::ImageGenerateParams::Svg::Reasoning, nil)


532
# File 'lib/openai/models/image_generate_params.rb', line 532

optional :reasoning, -> { OpenAI::ImageGenerateParams::Svg::Reasoning }, nil?: true

Instance Method Details

#to_hash ⇒ { model: String, ?reasoning: OpenAI::ImageGenerateParams::Svg::Reasoning? }

Returns:

  • ({ model: String, ?reasoning: OpenAI::ImageGenerateParams::Svg::Reasoning? })


449
450
451
452
# File 'sig/openai/models/image_generate_params.rbs', line 449

def to_hash: -> {
  model: String,
  ?reasoning: OpenAI::ImageGenerateParams::Svg::Reasoning?
}