GenAI.Message.Content.ImageContent (GenAI Core v0.2.0)

Represents image part of chat message.

Link to this section Summary

Functions

Base64 encode image content.

Get image type based on file extension.

Prepare new image message content item.

Get image resolution.

Link to this section Functions

Link to this function

base64(resource, options \\ nil)

Base64 encode image content.

Link to this function

file_type(resource)

Get image type based on file extension.

Link to this function

new(resource, options \\ nil)

Prepare new image message content item.

Get image resolution.