- Newest
- Most votes
- Most comments
The discrepancies you're experiencing between Claude 3.5 Sonnet accessed directly through Anthropic and through Amazon Bedrock could be due to a few factors:
-
Model versions: It's possible that the version of Claude 3.5 Sonnet available on Bedrock may not be the exact same as the one you're accessing directly through Anthropic. There can be slight differences in model versions or fine-tuning between platforms.
-
API differences: The way you interact with Claude through Bedrock's API might be slightly different from Anthropic's direct API. This could lead to variations in how the model processes your inputs.
-
Prompt formatting: Ensure that you're formatting your prompts identically on both platforms. Even small differences in prompt structure or parameters could lead to different outputs.
-
Token limits and context windows: Check if there are any differences in the maximum token limits or context windows between the two platforms, as this could affect the model's ability to process longer prompts or files.
-
Cross-region inference: If you're using cross-region inference with Bedrock, this might introduce some variations in how the model processes your requests.
To overcome these issues:
- Double-check your API calls to ensure they're formatted correctly for Bedrock.
- Verify that you're using the latest available version of Claude 3.5 Sonnet on Bedrock.
- Try adjusting your prompts to be more explicit or structured to get consistent results.
- If possible, compare the raw API responses from both platforms to identify any differences in how the requests are being processed.
- Consider reaching out to AWS support for guidance, especially if you believe there might be an issue with the Bedrock implementation.
If the discrepancies persist and are significant, it may be worth reporting this to AWS support for further investigation.
Sources
Bedrock API with Cross Region Inference is not working | AWS re:Post
Intelligent document processing using Amazon Bedrock and Anthropic Claude | AWS Machine Learning Blog
Permission of AWS bedrock Claude 3.5 Sonnet on US East (N. Virginia) | AWS re:Post
answered 2 years ago
When using Bedrock, check if you're using the same parameter settings (temperature, top_p, max_tokens, etc.) as your direct Claude implementation. Different settings can lead to different responses. Apart from that response length also matters.
Thank you Srini! Where can I see those settings in Claude and in Bedrock? Can I change them? Many thanks!
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated 2 months ago

Please see this documentation https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-anthropic-claude-text-completion.html