claude-code - 💡(How to fix) Fix [Bug] Opus 4.8 on Bedrock: "thinking.type.enabled" not supported — regression from #51439

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Claude Code 2.1.156 sends thinking.type: "enabled" when using aws.claude-opus-4.8 on AWS Bedrock, but this model only accepts thinking.type: "adaptive" with output_config.effort. This results in a 400 error, making Opus 4.8 unusable on Bedrock.

This is a regression of the same issue previously fixed in #51439 / #50100 (fixed in v2.1.121 for Opus 4.7). The fix apparently does not cover the new Opus 4.8 model ID.

Error Message

API Error: 400 "thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.
(Service: BedrockRuntime, Status Code: 400, Request ID: 4ca3008d-466e-4042-b0fb-6c21618cf8a9)

Root Cause

Claude Code 2.1.156 sends thinking.type: "enabled" when using aws.claude-opus-4.8 on AWS Bedrock, but this model only accepts thinking.type: "adaptive" with output_config.effort. This results in a 400 error, making Opus 4.8 unusable on Bedrock.

This is a regression of the same issue previously fixed in #51439 / #50100 (fixed in v2.1.121 for Opus 4.7). The fix apparently does not cover the new Opus 4.8 model ID.

Fix Action

Workaround

Switch to aws.claude-opus-4.6-b which works correctly.

Code Example

API Error: 400 "thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.
(Service: BedrockRuntime, Status Code: 400, Request ID: 4ca3008d-466e-4042-b0fb-6c21618cf8a9)
RAW_BUFFERClick to expand / collapse

Summary

Claude Code 2.1.156 sends thinking.type: "enabled" when using aws.claude-opus-4.8 on AWS Bedrock, but this model only accepts thinking.type: "adaptive" with output_config.effort. This results in a 400 error, making Opus 4.8 unusable on Bedrock.

This is a regression of the same issue previously fixed in #51439 / #50100 (fixed in v2.1.121 for Opus 4.7). The fix apparently does not cover the new Opus 4.8 model ID.

Error

API Error: 400 "thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.
(Service: BedrockRuntime, Status Code: 400, Request ID: 4ca3008d-466e-4042-b0fb-6c21618cf8a9)

Steps to reproduce

  1. Configure Claude Code to use AWS Bedrock as the provider
  2. /model aws.claude-opus-4.8
  3. Send any message

Expected behavior

Claude Code should use thinking.type: "adaptive" for Opus 4.8, same as it does for Opus 4.7 on Bedrock.

Actual behavior

Immediate 400 error on every message sent.

Workaround

Switch to aws.claude-opus-4.6-b which works correctly.

Environment

  • Claude Code version: 2.1.156
  • Platform: macOS (Darwin, ARM64)
  • Provider: AWS Bedrock
  • Model: aws.claude-opus-4.8

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Claude Code should use thinking.type: "adaptive" for Opus 4.8, same as it does for Opus 4.7 on Bedrock.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Opus 4.8 on Bedrock: "thinking.type.enabled" not supported — regression from #51439