OpenAI::ResponseImageGenCallPartialImageEvent
Inherits JSON::Serializable < Reference < Object
Emitted when a partial image is available during image generation streaming.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ResponseImageGenCallPartialImageEventType = ResponseImageGenCallPartialImageEventType::ResponseImageGenerationCallPartialImage, output_index : Int64 = 0, item_id : String = "", sequence_number : Int64 = 0, partial_image_index : Int64 = 0, partial_image_b64 : String = "")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
item_id=(item_id : String)
The unique identifier of the image generation item being processed.
output_index=(output_index : Int64)
The index of the output item in the response's output array.
partial_image_b64=(partial_image_b64 : String)
Base64-encoded partial image data, suitable for rendering as an image.
partial_image_index
0-based index for the partial image (backend is 1-based, but this is 0-based for the user).
partial_image_index=(partial_image_index : Int64)
0-based index for the partial image (backend is 1-based, but this is 0-based for the user).
sequence_number=(sequence_number : Int64)
The sequence number of the image generation item being processed.
type_value=(type_value : ResponseImageGenCallPartialImageEventType)
The type of the event. Always 'response.image_generation_call.partial_image'.