Repository navigation
Fix general-agent thinking options for supported Claude models - #1099
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch was successfully deployed
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.
Selecting
anthropic/claude-opus-4.7currently configures the general agent with manual thinking, which that model rejects. Use adaptive thinking for the original three explicit Gateway IDs (Opus 4.7, Opus 4.6, Sonnet 4.6), while preserving the existing manual configuration for every other ID. Adaptive requests use summarized display and medium effort without a manual token budget.The installed Anthropic SDK already supports these options; no dependency or lockfile upgrade is needed. This is the bounded successor to original #445, not the separate SDK v7/provider-migration work. Selected/default models, OpenAI/Google options, tools, stopping rules, billing and workers are unchanged. Unknown/newer/alternate IDs are deliberately not inferred as compatible, and other execution paths are outside this fix.
Validation: existing baseline 25 tests pass; new constructor regressions fail for all three IDs before implementation; focused green 37 tests; broader agents/chat/AI/networking/contracts suite 1,014 tests across 132 files passes. Tests exercise the installed SDK request serializer using fake fetch, including older-model wire compatibility. Lint and changed-file formatting pass. Whole-project TypeScript retains the same 211 existing diagnostics byte-for-byte. Independent exact-head Spec/Standards review: no actionable findings. Full exact-head CI: 7,291 tests passed, 15 skipped; response-contract type check, lint, formatting, compatibility and Vercel preview passed.
Anthropic compatibility guide, checked October 21, 2026. No live provider request, paid generation, customer operation, credential inspection or deployment was performed; tests do not establish production provider acceptance, output quality, latency or cost.