openclaw - 💡(How to fix) Fix Anthropic API Migration Required: Sonnet 4.6 Model Name and Header Changes [1 comments, 2 participants]

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…
GitHub stats
openclaw/openclaw#73475Fetched 2026-04-29 06:19:23
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
0
Author
Timeline (top)
commented ×1
RAW_BUFFERClick to expand / collapse

Migration Required for Anthropic Sonnet 4.6

Anthropic is releasing Sonnet 4.6 with API changes that will affect OpenClaw's Anthropic provider.

Changes Required:

  1. Model string format change:

    • Current: anthropic/claude-sonnet-4-20250514
    • New: claude-sonnet-4-6-[version]
  2. Remove beta header:

    • Remove: anthropic-beta: context-1m-2025-08-07
    • (1M context is becoming standard, no longer beta)

Timeline:

  • Release expected: Tomorrow (April 29, 2026)
  • Reporter unavailable for next 2 weeks

Action Items:

  • Update Anthropic provider model naming
  • Remove context-1m beta header
  • Update model aliases (sonnet, opus) to point to new versions
  • Test API compatibility

Source: Official Anthropic migration email

Priority: High - will break existing Anthropic integration when new models go live.

extent analysis

TL;DR

Update the Anthropic provider to use the new model string format and remove the beta header to ensure compatibility with Sonnet 4.6.

Guidance

  • Review the current implementation of the Anthropic provider and identify areas where the model string format needs to be updated to claude-sonnet-4-6-[version].
  • Remove the anthropic-beta: context-1m-2025-08-07 header from API requests, as the 1M context is becoming standard.
  • Update model aliases (sonnet, opus) to point to the new versions of the models.
  • Perform thorough testing of API compatibility after making these changes to ensure a smooth transition.

Example

No code snippet is provided as the issue does not contain specific code references.

Notes

The priority of this task is high, and the changes need to be made before the release of Sonnet 4.6 to avoid breaking the existing Anthropic integration. The reporter's unavailability for the next 2 weeks adds urgency to completing these tasks promptly.

Recommendation

Apply the workaround by updating the Anthropic provider according to the specified changes, as the release of Sonnet 4.6 is imminent and incompatibility issues are expected if no action is taken.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Anthropic API Migration Required: Sonnet 4.6 Model Name and Header Changes [1 comments, 2 participants]