Module: Anthropic::Models::ImageTransformationsParam::OversizedImage
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/anthropic/models/image_transformations_param.rb,
sig/anthropic/models/image_transformations_param.rbs
Overview
What the server does when this image exceeds the model's maximum image size.
"downsize" (the default) scales the image down to fit, which changes the
dimensions the model observes without telling you. "error" instead rejects the
request with a 400 error naming the image's dimensions and the largest
dimensions that fit, so you can scale the image deliberately — your image is
never silently scaled down.
Constant Summary collapse
- DOWNSIZE =
:downsize- ERROR =
:error
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Enum
==, ===, coerce, dump, hash, inspect, to_sorbet_type, values
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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/image_transformations_param.rb', line 42
|
Instance Method Details
#self?.values ⇒ ::Array[Anthropic::Models::ImageTransformationsParam::oversized_image]
31 |
# File 'sig/anthropic/models/image_transformations_param.rbs', line 31
def self?.values: -> ::Array[Anthropic::Models::ImageTransformationsParam::oversized_image]
|