class

OpenAI::InputImageContent

Inherits JSON::Serializable < Reference < Object

An image input to the model. Learn about image inputs.

Constructors

new(type_value : InputImageContentType = InputImageContentType::InputImage, image_url : InputImageContentImageUrl | Nil = nil, file_id : InputImageContentFileId | Nil = nil, detail : ImageDetail = ImageDetail::Low)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

detail

The detail level of the image to be sent to the model. One of high, low, or auto. Defaults to auto.

Source
detail=(detail : ImageDetail)

The detail level of the image to be sent to the model. One of high, low, or auto. Defaults to auto.

Source
file_id
Source
file_id=(file_id : InputImageContentFileId | Nil)
Source
image_url
Source
image_url=(image_url : InputImageContentImageUrl | Nil)
Source
type_value

The type of the input item. Always input_image.

Source
type_value=(type_value : InputImageContentType)

The type of the input item. Always input_image.

Source