feat: Add Claude Opus 4.6 model support #11221
Closed
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.
Adds support for Claude Opus 4.6, Anthropic's upgraded smartest model with:
claude-opus-4-6Changes
Anthropic Provider
packages/types/src/providers/anthropic.ts - Added model definition with:
src/api/providers/anthropic.ts - Added
claude-opus-4-6to both switch case lists for prompt caching supportOpenRouter Provider
anthropic/claude-opus-4.6to:OPEN_ROUTER_PROMPT_CACHING_MODELSOPEN_ROUTER_REASONING_BUDGET_MODELSVercel AI Gateway Provider
anthropic/claude-opus-4.6to:VERCEL_AI_GATEWAY_PROMPT_CACHING_MODELSVERCEL_AI_GATEWAY_VISION_AND_TOOLS_MODELSNotes on Bedrock and Vertex
Bedrock and Vertex providers use date-suffixed model IDs (e.g.,
anthropic.claude-opus-4-5-20251101-v1:0). The model can be added to these providers once it becomes available on those platforms with their specific naming conventions.View task on Roo Code Cloud
Important
Add support for Claude Opus 4.6 model with 1M context window, prompt caching, and reasoning budget in
anthropic.ts,openrouter.ts,vercel-ai-gateway.ts, andanthropic.ts.claude-opus-4-6model toanthropic.tswith 32K max tokens, 1M context window, vision support, prompt caching, and reasoning budget.claude-opus-4-6to prompt caching and reasoning budget models inopenrouter.tsandvercel-ai-gateway.ts.AnthropicHandlerinanthropic.tsto includeclaude-opus-4-6in model handling logic.This description was created by
for ac1eff1. You can customize this summary. It will automatically update as commits are pushed.