Roo-Code: Bedrock model identifier becomes invalid
App Version
3.11.5 or later,
API Provider
Amazon Bedrock
Model Used
anthropic.claude-3-5-sonnet-20241022-v2:0 (Cross-region inference)
Actual vs. Expected Behavior
I am using AWS Bedrock’s Claude 3.5 sonnet V2.
I was able to use Bedrock with Roo Code 3.11.4, but after updating to Roo Code 3.11.5 or later, the following error message appears: "The provided model identifier is invalid.”
Do I need to change any settings to use Bedrock models in Roo Code 3.11.5 or later? I couldn’t find any similar questions, but if there are any, please let me know.
Detailed Steps to Reproduce
1.Register profile information using the AWS CLI 2.Select “AWS Profile” in the provider settings and specify the registered profile name and Bedrock model name
Relevant API Request Output
Additional Context
・IDE and version being used (VS Code, Cursor, etc.) VS Code 1.99.3 ・Platform (Windows/Mac) Mac
・AWS Bedrock model ID anthropic.claude-3-5-sonnet-20241022-v2:0 (Cross-region inference) ・AWS region ap-northeast-1
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 15
Commits related to this issue
- feat: update AWS Bedrock cross-region inference profile mapping, Closed issue #2704 (#4973) — committed to RooCodeInc/Roo-Code by KevinZhao a year ago
- feat: update AWS Bedrock cross-region inference profile mapping, Closed issue #2704 (#4973) — committed to RooCodeInc/Roo-Code by KevinZhao a year ago
- feat: update AWS Bedrock cross-region inference profile mapping, Closed issue #2704 (#4973) — committed to modelharbor/ModelHarbor-Agent by KevinZhao a year ago
I’m working on fixing this now. I started off trying to fix it using tricky region/version string logic and now I’m leaning towards just fetching all the bedrock foundation models dynamically using the aws/sdk (since only some are available in each region).
With the current UI, it can be hard to find a working combination of model/region. I’m making good progress so hopefully this will be done today– I’ll open a PR shortly!