Skip to content

Fix Opus 4.8 adaptive thinking on Bedrock#3094

Closed
aheritier wants to merge 1 commit into
mainfrom
fix/opus-48-adaptive-thinking
Closed

Fix Opus 4.8 adaptive thinking on Bedrock#3094
aheritier wants to merge 1 commit into
mainfrom
fix/opus-48-adaptive-thinking

Conversation

@aheritier

Copy link
Copy Markdown
Contributor

Summary

Fixes #3093.

  • Detect Claude Opus 4.7+ / Opus 4.8 as models that reject token-based thinking.type=enabled
  • Convert numeric thinking budgets for those models to adaptive thinking on Bedrock
  • Add explicit Bedrock support for adaptive / adaptive/<level> via output_config.effort
  • Update Anthropic and Bedrock thinking docs/examples to recommend adaptive thinking for Opus 4.7+
  • Add/adjust tests for Opus 4.8 adaptive thinking behavior

Validation

  • go test ./pkg/modelinfo ./pkg/model/provider/anthropic ./pkg/model/provider/bedrock
  • task lint
  • task build

task test was also run earlier; unrelated example tests failed while pulling ai/qwen3 due to Docker/CloudFront returning 416 Requested Range Not Satisfiable.

@aheritier aheritier requested a review from a team as a code owner June 12, 2026 15:23
@aheritier aheritier force-pushed the fix/opus-48-adaptive-thinking branch from b89cadc to 7d3b3e8 Compare June 12, 2026 15:27
@aheritier aheritier marked this pull request as draft June 12, 2026 15:27
@aheritier aheritier added area/providers/anthropic For features/issues/fixes related to the usage of Anthropic models area/providers/bedrock AWS Bedrock provider support kind/fix PR fixes a bug (maps to fix: commit prefix) labels Jun 12, 2026
@aheritier

Copy link
Copy Markdown
Contributor Author

only the doc should be fixed

@aheritier aheritier closed this Jun 12, 2026
@docker-agent

Copy link
Copy Markdown

PR Review Failed — The review agent encountered an error and could not complete the review. View logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/providers/anthropic For features/issues/fixes related to the usage of Anthropic models area/providers/bedrock AWS Bedrock provider support kind/fix PR fixes a bug (maps to fix: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify thinking_budget docs for Claude Opus 4.8 adaptive thinking

2 participants