add_inline_data: Add inline image data to Gemini API body
Description
Appends an inline_data part (image) to the Gemini API request body.
Usage
add_inline_data(body, mime_type, data)
Value
The updated body list with the inline image data added.
Arguments
- body
A list representing the current Gemini API request body.
- mime_type
Character. The MIME type of the image (e.g., "image/png").
- data
Character. The base64-encoded image data.