mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:20:43 +00:00
docs(anthropic): note context1m param applies to Claude CLI backend
Ayaan's28e4cd81a9(#70863, thanks @bidadh, source from Arthur Kazemi8abbae0101) extended params.context1m:true so the configured 1M context window override now applies to eligible Claude CLI Opus and Sonnet models, not only direct API calls. CHANGELOG entry covered the change but docs/providers/anthropic.md '1M context window (beta)' Accordion only described direct-API behavior, so Claude CLI users had no signal the same param works for their backend. Add a sentence inside the same Accordion.
This commit is contained in:
@@ -260,6 +260,10 @@ OpenClaw supports Anthropic's prompt caching feature for API-key auth.
|
||||
|
||||
OpenClaw maps this to `anthropic-beta: context-1m-2025-08-07` on requests.
|
||||
|
||||
`params.context1m: true` also applies to the Claude CLI backend
|
||||
(`claude-cli/*`) for eligible Opus and Sonnet models, expanding the runtime
|
||||
context window for those CLI sessions to match the direct-API behavior.
|
||||
|
||||
<Warning>
|
||||
Requires long-context access on your Anthropic credential. Legacy token auth (`sk-ant-oat-*`) is rejected for 1M context requests — OpenClaw logs a warning and falls back to the standard context window.
|
||||
</Warning>
|
||||
|
||||
Reference in New Issue
Block a user