[BUG] 2.1.68 Sends effort parameter when using custom model
Status Fixed / completed
Reported on v2.1.68
Maintainer reply ✓ Yes — hackyon-anthropic
Workaround ✓ Mentioned in thread ↓
Activity 12 comments · opened Mar 4, 2026 · closed Mar 5, 2026
💡 Likely answer: A maintainer (hackyon-anthropic, collaborator)
responded on this thread — see the highlighted reply below.
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
We are using AWS Bedrock and using an inference profile , after the 2.1.68 update its trying to send the effort parameter but, our claude sonnet 4.5 on bedrock govcloud doesn't support it. We get ⎿ API Error: 400 This model does not support the effort parameter.
Need a way to disable effort parameter on custom model.
What Should Happen?
Have a setting we can specify to disable effort parameter when using custom model.
Error Messages/Logs
API Error: 400 This model does not support the effort parameter.
Steps to Reproduce
Reproduction is hard unless you have access to a model that doesn't support effort and you set it up as a custom model.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.66
Claude Code Version
2.1.68
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
12 Comments
same experience even when the the effort parameter is not defined.
Same here, also tried disabling ‘effort’ via CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1 to no effect
I downgraded my claude code vscode extension to version 2.1.66 and this fixed it for me.
Same issue here - affecting our users for both MacOS and Linux. More details below which mirror the original report from @copilot-fy-100
Bug:
effortparameter breaks Sonnet and Haiku on Bedrock (2.1.68+)Summary
Starting in v2.1.68, Claude Code sends an
effortparameter on every API request. On AWS Bedrock, only Opus 4.6 inference profiles accept this parameter. Sonnet 4.6 and Haiku 4.5 inference profiles reject it immediately with a 400 error. This makes two of the three models completely unusable on Bedrock.What works and what doesn't
All three models were tested as both the main session (via
/model) and as subagents. Sonnet and Haiku fail in all contexts. This affects both macOS and Linux users on Bedrock.Practical impact:
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1does NOT fix the issue (tested)Claude Code already has Bedrock detection logic — the debug log shows
"Fast mode unavailable: Fast mode is not available on Bedrock, Vertex, or Foundry"before API calls, proving that fast mode correctly disables itself on Bedrock. The effort parameter code path does not appear to use the same detection.Environment
| Component | Value |
|-----------|-------|
| Claude Code version | 2.1.68 (broken), 2.1.69 (broken, different error msg), 2.1.66 works. (2.1.67 not tested.) |
| Platforms | macOS 15.x (arm64), Linux (also affected) |
| Backend | AWS Bedrock (custom inference profiles via the Invoke API) |
| Model aliases |
opus[1m],sonnet,haiku|Bedrock configuration (env vars)
The following are set by our claude code wrapper script (anonymized for bug report)
Error messages
v2.1.68:
v2.1.69 (same root cause, different error message):
The v2.1.69 error indicates the
effortparameter was moved into anoutput_configobject. Bedrock still rejects it for Sonnet and Haiku.How to reproduce
Method 1 — Main session (simplest):
/model sonnetor/model haikuMethod 2 — Subagent (Explore):
/model opus[1m]Method 3 — Session resume:
The error also occurs on the first API call when resuming a session, before any user interaction.
Root cause (confirmed via
ANTHROPIC_LOG=debug)Debug logging reveals the exact failure. Every API request on 2.1.68+ includes:
output_config: { effort: ... }in the request body'anthropic-beta': 'claude-code-20250219,effort-2025-11-24'in the headersBedrock's response depends on the model:
output_config.effort→ 200 OKClaude Code sends the effort parameter unconditionally to all models. It does not check whether the target model/inference profile supports it.
Failing request (Haiku Explore agent)
Response:
400 output_config.effort: Extra inputs are not permitted(477ms, not retried)Comparison in the same session
Debug log evidence
The "Fast mode unavailable" check confirms Claude Code has Bedrock detection logic, but the effort parameter code path does not use it.
Workaround
Pin to v2.1.66. This is the last version that does not send the effort parameter.
The following do NOT help:
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1— tested, effort parameter still sentCLAUDE_CODE_EFFORT_LEVEL/effortLevelsetting — controls the effort value but does not prevent the parameter from being sentExpected behavior
Claude Code should not send
output_config.effortto models that don't support it on Bedrock. The fix could be:output_config.effortto Opus 4.6 inference profiles on Bedrock, orCLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1actually suppress the effort parameterBackground: effort parameter in 2.1.68+
The 2.1.68 release notes introduced this intentionally:
The effort parameter is a deliberate feature for Opus 4.6. The bug is that it's sent to all models on Bedrock, not just Opus.
Prior Bedrock fixes (none address this issue)
| Version | Fix | Relevance |
|---------|-----|-----------|
| 2.1.41 | "Fixed Agent Teams using wrong model identifier for Bedrock" | Model ID resolution only |
| 2.1.45 | "Fixed Agent Teams failing on Bedrock by propagating env vars" | Env var propagation only |
| 2.1.49 | SDK adds
supportsEffortmodel capability field | Exists but does not gate Bedrock requests || 2.1.68 | "Opus 4.6 now defaults to medium effort" | Introduces the effort parameter; no Bedrock exclusion |
Related
effortbut the Bedrock Invoke API does not (for Sonnet/Haiku)@hackyon-anthropic Why was this issue closed as completed? We are still experiencing this same issue when using haiku/sonnet bedrock inference profiles on CC 2.1.69. Even when using Opus as the primary model, Explore agents, WebFetch, etc that use secondary models experience the
API Error: 400 output_config.effort: Extra inputs are not permittederror@ollie-anthropic @hackyon-anthropic - similar to @joshwestbrook, our users are still impacted by this on both MacOS and Linux on 2.1.69 (latest as of 9am 3/5/2026) using AWS Bedrock.
Let us know if you have more information on a forthcoming fix and would consider reopening this ticket until this is resolved. Thanks!
As a workaround we have downgraded versions. For the CLI we added
"autoUpdatesChannel": "stable",to settings.json and then ran claude update which "upgraded" us to the latest stable which yesterday was 2.1.50.
For the VSCode extension next to the uninstall button there is a drop down and you can say install specific version.
Sorry folks, this should be fixed in today's release v2.1.70 that's coming out imminently
@hackyon-anthropic I upgraded to v2.1.70, but now even models that support the effort parameter — such as Opus and Sonnet — are showing no support for it. Is this the intended behavior? My expectation was that Opus and Sonnet would send the effort parameter, while Haiku would not.
<img width="2500" height="454" alt="Image" src="https://github.com/user-attachments/assets/4e7d8a5e-2b15-41d7-b071-4c68b751b657" />
Thanks for the quick resolution @hackyon-anthropic and the update! Much appreciated.
I can confirm that we no longer see the 400 API errors on our end for both our MacOS and Linux users.
@shibayu36 raises a different question of the interactive adaptive effort UI in the /model picker dialog not working for custom ARNs on Bedrock, which we also see. Happy to file a new ticket for this.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.