Skip to content

Conversation

libetl
Copy link

@libetl libetl commented Oct 10, 2025

The image message follows the Converse model, which is a small json following this schema

{"format": "png" | "jpeg" | "webp",
"source": {"bytes": "<base64>"} | {"s3Location": "s3://bucket/..."}
}

Also, botocore is already converting the image to base64 (from the bytes property).
If we send it already in base64 it will encode it a second time.

Tested locally.

Updated the handling of image conversions in the message processing logic. Deprecated the option to convert images to URLs as botocore now manages image data conversion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant