Class: OpenAI::Models::ModerationImageURLInput::ImageURL
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::ModerationImageURLInput::ImageURL
- Defined in:
- lib/openai/models/moderation_image_url_input.rb
Overview
Instance Attribute Summary collapse
-
#url ⇒ String
Either a URL of the image or the base64 encoded image data.
Instance Method Summary collapse
-
#initialize(url: ) ⇒ Object
constructor
Contains either an image URL or a data URL for a base64 encoded image.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, 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(url: ) ⇒ Object
Contains either an image URL or a data URL for a base64 encoded image.
|
# File 'lib/openai/models/moderation_image_url_input.rb', line 33
|
Instance Attribute Details
#url ⇒ String
Either a URL of the image or the base64 encoded image data.
31 |
# File 'lib/openai/models/moderation_image_url_input.rb', line 31 required :url, String |