| content_image | R Documentation |
Creates an image content object for a multimodal message. Automatically handles URLs, data URIs, raw bytes, and local files. This is kept for backward compatibility and returns the provider-neutral image block used by multimodal providers.
content_image(image_path, media_type = "auto", detail = "auto")
image_path |
Path to a local file or a URL. |
media_type |
MIME type of the image (e.g., "image/jpeg", "image/png"). If NULL, attempts to guess from the file extension. |
detail |
Image detail suitable for some models (e.g., "auto", "low", "high"). |
A provider-neutral image block.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.