Prompt Caching Preview Not Working With Boto3 #4376
Labels
bedrock-runtime
bug
This issue is a confirmed bug.
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
I'm attempting to run the boto3 example that uses prompt caching in this AWS Blog post: https://aws.amazon.com/blogs/aws/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview/
Specifically this block of code:
My organization has the prompt caching preview enabled and we are running the latest version of boto3 (1.35.79 at time of this post). I get the following exception when running the above example:
It appears that boto3 doesn't support this parameter yet, but the AWS blog shows it being used above. Is the version of boto3 that supports this not yet published or am I potentially doing something wrong?
Regression Issue
Expected Behavior
I expect to be able to call the Converse API with prompt caching working.
Current Behavior
I get the below error
Reproduction Steps
Run the code as documented in the AWS Blog: https://aws.amazon.com/blogs/aws/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview/
This block specifically:
PDF's needed are linked to in the Blog post
Possible Solution
No response
Additional Information/Context
Our organization that I'm authenticating with has been enabled for the prompt caching preview.
SDK version used
1.35.79
Environment details (OS name and version, etc.)
Windows 11 and Linux
The text was updated successfully, but these errors were encountered: