feat: add Claude Opus 4.7 support across all providers (#12287)#12301
Open
roomote-v0[bot] wants to merge 3 commits intomainfrom
Open
feat: add Claude Opus 4.7 support across all providers (#12287)#12301roomote-v0[bot] wants to merge 3 commits intomainfrom
roomote-v0[bot] wants to merge 3 commits intomainfrom
Conversation
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
7 tasks
Contributor
Author
Fixed Bedrock implementation to match the working version from PR #12288: corrected model ID to |
…port - Rename model ID from "anthropic.claude-opus-4-7-v1" to "anthropic.claude-opus-4-7" to match the correct Bedrock model identifier (per PR #12288) - Update BedrockAdditionalModelFields to support adaptive thinking type - Add BEDROCK_ADAPTIVE_THINKING_ONLY_MODEL_IDS for Opus 4.7 - Opus 4.7 uses thinking.type: "adaptive" with output_config.effort instead of "enabled" with budget_tokens (which returns 400 error)
|
@roomote Also update the description on this PR to reflect the fixes? |
Contributor
Author
Updated the PR description to reflect the fixes from the latest commit: corrected Bedrock model ID ( |
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.
Closes: #12287
Supersedes #12288 by extending Claude Opus 4.7 support beyond just Bedrock to all providers.
Changes
Bedrock (from #12288):
anthropic.claude-opus-4-7model entry tobedrockModelsBEDROCK_1M_CONTEXT_MODEL_IDSandBEDROCK_GLOBAL_INFERENCE_MODEL_IDSanthropic.claude-opus-4-7-v1toanthropic.claude-opus-4-7to match the correct Bedrock identifierthinking.type: "adaptive"withoutput_config.effortinstead of"enabled"withbudget_tokensBEDROCK_ADAPTIVE_THINKING_ONLY_MODEL_IDSconstant for models requiring this thinking modeBedrockAdditionalModelFieldsinterface to support the adaptive thinking typeAnthropic Direct API:
claude-opus-4-7model entry toanthropicModelswith 128K maxTokens, $5/$25 pricing, 1M context tiersgetModel()1M context tier pricing checkOpenRouter:
anthropic/claude-opus-4.7to prompt caching and reasoning budget model setsVercel AI Gateway:
anthropic/claude-opus-4.7to prompt caching and vision+tools model setsWebView UI:
claude-opus-4-7to 1M context beta tier pricing check inuseSelectedModelTest Procedure
Interactively review PR in Roo Code Cloud