Module: Anthropic::Models::Beta::BetaImageTransformationsParam::OversizedImage
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/anthropic/models/beta/beta_image_transformations_param.rb,
sig/anthropic/models/beta/beta_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
Instance Method Summary collapse
Methods included from Internal::Type::Enum
==, ===, coerce, dump, hash, inspect, to_sorbet_type, values, 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
Instance Method Details
#self?.values ⇒ ::Array[Anthropic::Models::Beta::BetaImageTransformationsParam::oversized_image]
34 |
# File 'sig/anthropic/models/beta/beta_image_transformations_param.rbs', line 34
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaImageTransformationsParam::oversized_image]
|