Skip to content

feat(bedrock): add Claude Opus 4.7 support (#12287)#12288

Open
andylemin wants to merge 1 commit intoRooCodeInc:mainfrom
andylemin:main
Open

feat(bedrock): add Claude Opus 4.7 support (#12287)#12288
andylemin wants to merge 1 commit intoRooCodeInc:mainfrom
andylemin:main

Conversation

@andylemin
Copy link
Copy Markdown

@andylemin andylemin commented May 8, 2026

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:

  • Added "anthropic.claude-opus-4-7-v1" model entry to bedrockModels with identical spec to the Vertex claude-opus-4-7 definition: $5/$25 pricing, prompt caching, reasoning budget, 1M context tier
  • Added to BEDROCK_1M_CONTEXT_MODEL_IDS for 1M context beta flag support
  • Added to BEDROCK_GLOBAL_INFERENCE_MODEL_IDS for cross-region inference profiles

The 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

  • Verified model definition matches the Vertex claude-opus-4-7 spec in packages/types/src/providers/vertex.ts
  • Confirmed pricing matches official Anthropic announcement ($5/$25, same as Opus 4.6)
  • Verified the Bedrock handler (src/api/providers/bedrock.ts) uses BEDROCK_1M_CONTEXT_MODEL_IDS.includes() and bedrockModels[baseModelId] lookups — no hardcoded IDs to update
  • Existing Bedrock test suite passes as-is since no handler logic was modified (types-only change)

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

N/A — no UI changes. This is a provider types configuration addition.

Documentation Updates

  • No documentation updates are required.

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, xhigh effort level) are handled server-side and don't require client configuration changes.

Get in Touch

@andylemin

Interactively review PR in Roo Code Cloud

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. Enhancement New feature or request labels May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add Claude Opus 4.7 support on AWS Bedrock

1 participant