Class: OpenAI::Models::Responses::ResponseCreateParams::Image
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseCreateParams::Image
- Defined in:
- lib/openai/models/responses/response_create_params.rb,
sig/openai/models/responses/response_create_params.rbs
Defined Under Namespace
Modules: ContextCompression
Instance Attribute Summary collapse
-
#context_compression ⇒ OpenAI::Models::Responses::ResponseCreateParams::Image::context_compression?
Controls image context optimization.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(context_compression: nil) ⇒ Image
constructor
A new instance of Image.
- #to_hash ⇒ { ?context_compression: OpenAI::Models::Responses::ResponseCreateParams::Image::context_compression }
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(context_compression: nil) ⇒ Image
Returns a new instance of Image.
|
|
# File 'lib/openai/models/responses/response_create_params.rb', line 812
|
Instance Attribute Details
#context_compression ⇒ OpenAI::Models::Responses::ResponseCreateParams::Image::context_compression?
Controls image context optimization. Defaults to auto, which uses the model,
transport, and input to select a policy. Use enabled to require compression
support or disabled to turn it off.
807 808 809 810 |
# File 'lib/openai/models/responses/response_create_params.rb', line 807 optional( :context_compression, enum: -> { OpenAI::Responses::ResponseCreateParams::Image::ContextCompression } ) |
Instance Method Details
#to_hash ⇒ { ?context_compression: OpenAI::Models::Responses::ResponseCreateParams::Image::context_compression }
874 875 876 |
# File 'sig/openai/models/responses/response_create_params.rbs', line 874
def to_hash: -> {
?context_compression: OpenAI::Models::Responses::ResponseCreateParams::Image::context_compression
}
|