OpenAI::InputImageContent
Inherits JSON::Serializable < Reference < Object
An image input to the model. Learn about image inputs.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : InputImageContentType = InputImageContentType::InputImage, image_url : InputImageContentImageUrl | Nil = nil, file_id : InputImageContentFileId | Nil = nil, detail : ImageDetail = ImageDetail::Low)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
detail
The detail level of the image to be sent to the model. One of high, low, or auto. Defaults to auto.
detail=(detail : ImageDetail)
The detail level of the image to be sent to the model. One of high, low, or auto. Defaults to auto.
file_id
Sourcefile_id=(file_id : InputImageContentFileId | Nil)
Sourceimage_url
Sourceimage_url=(image_url : InputImageContentImageUrl | Nil)
Sourcetype_value=(type_value : InputImageContentType)
The type of the input item. Always input_image.