fix(transform): add claude-opus-4.7 to isAnthropicAdaptive list#23499
fix(transform): add claude-opus-4.7 to isAnthropicAdaptive list#23499kiote wants to merge 1 commit intoanomalyco:devfrom
Conversation
claude-opus-4.7 supports the adaptive thinking API (thinking.type=adaptive + output_config.effort) but was missing from the isAnthropicAdaptive check. It was falling through to the legacy thinking.type=enabled path, which GitHub Copilot rejects with an explicit error.
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: Related PR:
Why it's related: This PR also addresses Opus 4.7 support, though it's specific to the Bedrock provider. Your PR (#23499) is fixing the adaptive thinking API support in the transform layer, which is complementary work to ensure full Opus 4.7 compatibility across different aspects of the system. Note: PR #23499 (the current PR) appears in the search results because it's the PR being analyzed. The other thinking-related PRs found are about different functionality (thinking block signatures, etc.) and don't appear to be duplicates. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
The |
|
Closing as superseded — |
Issue for this PR
Fixes #23500
Type of change
What does this PR do?
claude-opus-4.7uses the adaptive thinking API (thinking.type=adaptive+output_config.effort), the same asclaude-opus-4.6. However, it was missing from theisAnthropicAdaptivecheck intransform.ts:Without being in this list,
claude-opus-4.7falls through to the legacythinking.type=enabledpath. GitHub Copilot explicitly rejects this with:The fix adds
"opus-4-7"and"opus-4.7"to the array, matching the same pattern already used foropus-4.6.How did you verify your code works?
Added a test case for
claude-opus-4.7mirroring the existingclaude-opus-4.6test. Both pass:Screenshots / recordings
N/A — not a UI change.
Checklist