feat(bedrock): add Claude Opus 4.7 support (#12287)#12288
Open
andylemin wants to merge 1 commit intoRooCodeInc:mainfrom
Open
feat(bedrock): add Claude Opus 4.7 support (#12287)#12288andylemin wants to merge 1 commit intoRooCodeInc:mainfrom
andylemin wants to merge 1 commit intoRooCodeInc:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #12287
Roo Code Task Context (Optional)
Used Roo Code (Claude Opus 4.6) to implement this change.
Description
Adds Claude Opus 4.7 support for AWS Bedrock, mirroring the existing Vertex AI support added in #12135 (commit 3e202eb).
Changes to
packages/types/src/providers/bedrock.ts:"anthropic.claude-opus-4-7-v1"model entry tobedrockModelswith identical spec to the Vertexclaude-opus-4-7definition: $5/$25 pricing, prompt caching, reasoning budget, 1M context tierBEDROCK_1M_CONTEXT_MODEL_IDSfor 1M context beta flag supportBEDROCK_GLOBAL_INFERENCE_MODEL_IDSfor cross-region inference profilesThe Bedrock handler uses data-driven lookups from these arrays rather than hardcoded model IDs, so no handler code changes were needed. Pricing validated against the official Anthropic Opus 4.7 release announcement (same as Opus 4.6: $5/$25 input/output).
Test Procedure
claude-opus-4-7spec inpackages/types/src/providers/vertex.tssrc/api/providers/bedrock.ts) usesBEDROCK_1M_CONTEXT_MODEL_IDS.includes()andbedrockModels[baseModelId]lookups — no hardcoded IDs to updatePre-Submission Checklist
Screenshots / Videos
N/A — no UI changes. This is a provider types configuration addition.
Documentation Updates
Additional Notes
This is a minimal, single-file change following the exact same pattern established by the Opus 4.6 Bedrock entry (
anthropic.claude-opus-4-6-v1). The model capabilities and pricing are identical to Opus 4.6 per the official Anthropic release announcement. The new capabilities in Opus 4.7 (higher resolution images at 2576px,xhigheffort level) are handled server-side and don't require client configuration changes.Get in Touch
@andylemin
Interactively review PR in Roo Code Cloud