Claude 3.5 V2 Sonnet doesn't support file attachments on the API, works in playground #4341
Labels
bug
This issue is a confirmed bug.
closed-for-staleness
p2
This is a standard priority issue
response-requested
Waiting on additional information or feedback.
service-api
This issue is caused by the service API, not the SDK implementation.
Describe the bug
Using a 2.5mb PDF, and a 300kb image, same result with both.
On the playground, both upload OK and can converse effectively around the documents.
On the API, I get the following response:
botocore.exceptions.EventStreamError: An error occurred (validationException) when calling the ConverseStream operation: The model returned the following errors: Input is too long for requested model.
This is using ChatBedrock, and the message section formatted as either:
{"image": {"format": get_file_format(file_obj), "source": {"base64": base64.b64encode(binary_data).decode('utf-8')}}}
orThis has also been tried using the raw binary data as bytes in the source.
Regression Issue
Expected Behavior
To be able to converse as per the playground on enclosing an image / document
Current Behavior
botocore.exceptions.EventStreamError: An error occurred (validationException) when calling the ConverseStream operation: The model returned the following errors: Input is too long for requested model.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.35.57
Environment details (OS name and version, etc.)
Mac OS Sonoma, Python 3.12.5
The text was updated successfully, but these errors were encountered: