strix icon indicating copy to clipboard operation
strix copied to clipboard

Opus 4.8 (us.anthropic.claude-opus-4-8) rejects thinking.type=enabled — needs adaptive + output_config.effort

Open seanturner-zh opened this issue 6 months ago • 1 comments

Summary

When invoking bedrock/us.anthropic.claude-opus-4-8 (released on AWS Bedrock 2026-06-01), Strix's first LLM request fails immediately with a BadRequestError:

litellm.BedrockException — {
  "message": "The model returned the following errors:
   \"thinking.type.enabled\" is not supported for this model.
   Use \"thinking.type.adaptive\" and \"output_config.effort\"
   to control thinking behavior."
}

Strix exits non-retryably after iteration 1/3 with Input Tokens 0 · Cached Tokens 0 — the request never goes through.

Opus 4.7 (us.anthropic.claude-opus-4-7) works fine with the current code on the same scan target.

Reproducer

STRIX_MODEL=bedrock/us.anthropic.claude-opus-4-8 \
STRIX_REASONING_EFFORT=high \
  strix run --target <any-repo>

Will fail in iteration 1 with the BedrockException above. Setting STRIX_REASONING_EFFORT=none would presumably work around it but trades off reasoning quality.

Root cause

strix/core/inputs.py:make_model_settings() passes ModelSettings(reasoning=Reasoning(effort=reasoning_effort)). Reasoning is imported from openai.types.shared and is translated to provider-specific params downstream (openai-agents SDK → LiteLLM → Bedrock).

For Anthropic models, this translation currently produces thinking: {type: "enabled", budget_tokens: N} which is the Opus 4.7 / Sonnet 4.6 contract. Opus 4.8 changed the contract:

Old (4.7) New (4.8)
thinking.type = "enabled" thinking.type = "adaptive"
thinking.budget_tokens = N output_config.effort = "high"|"medium"|"low"

Opus 4.8 explicitly rejects the old shape with the error message above.

Where the fix likely lives

I think the actual translation Reasoning → thinking.type is in LiteLLM's Anthropic provider, not in Strix directly. Strix is upstream of that — but Strix could either:

  1. Detect the new-contract models by name in make_model_settings and emit a different shape (or skip the reasoning config until LiteLLM catches up)
  2. Wait for LiteLLM to fix it and bump the LiteLLM pin once that ships

Filing this here so upstream Strix knows about the breakage. Happy to send a PR — let me know which direction you'd prefer.

Context

Discovered while testing Opus 4.8 against an internal codebase. Triage-side calls (raw bedrock-runtime converse without extended thinking) work fine — failure is specific to Strix's reasoning-enabled path.

Filed by Sean Turner (zerohash AppSec).

seanturner-zh avatar Jun 01 '26 10:06 seanturner-zh

Closing this as it's fixed now from upstream LiteLLM side.

0xallam avatar Jun 07 '26 23:06 0xallam