Skip to content

feat: add Claude Opus 4.7 support across all providers (#12287)#12301

Open
roomote-v0[bot] wants to merge 2 commits intomainfrom
feat/claude-opus-4-7-all-providers
Open

feat: add Claude Opus 4.7 support across all providers (#12287)#12301
roomote-v0[bot] wants to merge 2 commits intomainfrom
feat/claude-opus-4-7-all-providers

Conversation

@roomote-v0
Copy link
Copy Markdown
Contributor

@roomote-v0 roomote-v0 Bot commented May 9, 2026

Closes: #12287

Supersedes #12288 by extending Claude Opus 4.7 support beyond just Bedrock to all providers.

Changes

Bedrock (from #12288):

  • Added anthropic.claude-opus-4-7-v1 model entry to bedrockModels
  • Added to BEDROCK_1M_CONTEXT_MODEL_IDS and BEDROCK_GLOBAL_INFERENCE_MODEL_IDS

Anthropic Direct API:

  • Added claude-opus-4-7 model entry to anthropicModels with 128K maxTokens, $5/$25 pricing, 1M context tiers
  • Added to 1M context beta flag check, prompt caching switch, and extended thinking switch in handler
  • Added to getModel() 1M context tier pricing check

OpenRouter:

  • Added anthropic/claude-opus-4.7 to prompt caching and reasoning budget model sets
  • Added maxTokens override in fetcher

Vercel AI Gateway:

  • Added anthropic/claude-opus-4.7 to prompt caching and vision+tools model sets

WebView UI:

  • Added claude-opus-4-7 to 1M context beta tier pricing check in useSelectedModel

Test Procedure

  • All 88 existing tests pass (anthropic: 64, openrouter: 24)
  • All lint checks pass across 14 packages
  • All type checks pass across 14 packages

Interactively review PR in Roo Code Cloud

Andy Lemin and others added 2 commits May 8, 2026 13:46
Add claude-opus-4-7 model definitions and references to:
- Anthropic direct API types and handler (1M context, prompt caching, extended thinking)
- OpenRouter model sets and fetcher maxTokens override
- Vercel AI Gateway prompt caching and vision+tools sets
- WebView 1M context beta tier pricing check
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. Enhancement New feature or request labels May 9, 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:M This PR changes 30-99 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