Class: OpenAI::Models::ImageInputReferenceParam
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::ImageInputReferenceParam
- Defined in:
- lib/openai/models/image_input_reference_param.rb,
sig/openai/models/image_input_reference_param.rbs
Instance Attribute Summary collapse
- #file_id ⇒ String?
-
#image_url ⇒ String?
A fully qualified URL or base64-encoded data URL.
Instance Method Summary collapse
-
#initialize(file_id: nil, image_url: nil) ⇒ ImageInputReferenceParam
constructor
A new instance of ImageInputReferenceParam.
- #to_hash ⇒ { file_id: String, image_url: String }
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, meta_info, new_coerce_state, 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(file_id: nil, image_url: nil) ⇒ ImageInputReferenceParam
Returns a new instance of ImageInputReferenceParam.
|
|
# File 'lib/openai/models/image_input_reference_param.rb', line 17
|
Instance Attribute Details
#file_id ⇒ String?
9 |
# File 'lib/openai/models/image_input_reference_param.rb', line 9 optional :file_id, String |
#image_url ⇒ String?
A fully qualified URL or base64-encoded data URL.
15 |
# File 'lib/openai/models/image_input_reference_param.rb', line 15 optional :image_url, String |
Instance Method Details
#to_hash ⇒ { file_id: String, image_url: String }
16 |
# File 'sig/openai/models/image_input_reference_param.rbs', line 16
def to_hash: -> { file_id: String, image_url: String }
|