docs: clarify Anthropic context1m long-context requirements

This commit is contained in:
Agent
2026-03-01 22:35:12 +00:00
parent a374325fc2
commit 063c4f00ea
7 changed files with 91 additions and 1 deletions

View File

@@ -137,6 +137,14 @@ with `params.context1m: true` for supported Opus/Sonnet models.
OpenClaw maps this to `anthropic-beta: context-1m-2025-08-07` on Anthropic
requests.
This only activates when `params.context1m` is explicitly set to `true` for
that model.
Requirement: Anthropic must allow long-context usage on that credential
(typically API key billing, or a subscription account with Extra Usage
enabled). Otherwise Anthropic returns:
`HTTP 429: rate_limit_error: Extra usage is required for long context requests`.
Note: Anthropic currently rejects `context-1m-*` beta requests when using
OAuth/subscription tokens (`sk-ant-oat-*`). OpenClaw automatically skips the
context1m beta header for OAuth auth and keeps the required OAuth betas.