struct

Anthropic::ImageTransformations

Inherits JSON::Serializable < Struct < Value < Object

Transformations the server applies to an image before the model observes it. Omitted keys keep their default behavior.

Constructors

new(oversized_image : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

oversized_image

What the server does when the image exceeds the model's maximum size: "downsize" (default) scales it down silently, "error" rejects the request with a 400 naming the offending dimensions.

Source