docs(anthropic): note context1m param applies to Claude CLI backend · openclaw/openclaw@7fef13a
vincentkoc
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -260,6 +260,10 @@ OpenClaw supports Anthropic's prompt caching feature for API-key auth.
|
260 | 260 | |
261 | 261 | OpenClaw maps this to `anthropic-beta: context-1m-2025-08-07` on requests. |
262 | 262 | |
| 263 | +`params.context1m: true` also applies to the Claude CLI backend |
| 264 | +(`claude-cli/*`) for eligible Opus and Sonnet models, expanding the runtime |
| 265 | +context window for those CLI sessions to match the direct-API behavior. |
| 266 | + |
263 | 267 | <Warning> |
264 | 268 | 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. |
265 | 269 | </Warning> |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。