-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
Labels
feature-requestNew feature or enhancement. May require GitHub community feedback.New feature or enhancement. May require GitHub community feedback.p2This is a standard priority issueThis is a standard priority issuequeuedThis issues is on the AWS team's backlogThis issues is on the AWS team's backlogservice-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.
Description
Describe the feature
When using the converse API, any image file attached gets base64 encoded. Unfortunately that balloons the size to 33% higher than the actual file.
For example - if i have image.png that is 4.8MB and want to send it to claude sonnet 3.5 v2, it balloons to 6.4MB!
The model returned the following errors: messages.0.content.1.image.source: image exceeds 5 MB maximum: 6737924 bytes > 5242880 bytes
base64 incurs a 33% penalty!
https://en.wikipedia.org/wiki/Data_URI_scheme
Use Case
It's frustrating to limit images to LLM calls using converse API be 3.75 MB when the actual image size threshold should be 5.0MB or higher.
Proposed Solution
allow the ability to natively pass images in without base64 encoding
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
SDK version used
@aws-sdk/client-bedrock": "^3.687.0
Environment details (OS name and version, etc.)
MacOS
Metadata
Metadata
Assignees
Labels
feature-requestNew feature or enhancement. May require GitHub community feedback.New feature or enhancement. May require GitHub community feedback.p2This is a standard priority issueThis is a standard priority issuequeuedThis issues is on the AWS team's backlogThis issues is on the AWS team's backlogservice-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.