diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index caf11496a..117441894 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "29f7a2f441c6464df740ccebb24bae18783eb12a", - "syncedAt": "2026-04-25T05:38:13.608Z" + "sha": "d79b9e0af4c0cbbfdc7b4f8d79939c06d13bc138", + "syncedAt": "2026-04-25T05:39:33.678Z" } diff --git a/docs/concepts/model-providers.md b/docs/concepts/model-providers.md index bf0bebb55..bf233135c 100644 --- a/docs/concepts/model-providers.md +++ b/docs/concepts/model-providers.md @@ -269,7 +269,7 @@ See [/providers/kilocode](/providers/kilocode) for setup details. Quirks worth knowing: -- **OpenRouter** applies its app-attribution headers and Anthropic `cache_control` markers only on verified `openrouter.ai` routes. As a proxy-style OpenAI-compatible path, it skips native-OpenAI-only shaping (`serviceTier`, Responses `store`, prompt-cache hints, OpenAI reasoning-compat). Gemini-backed refs keep proxy-Gemini thought-signature sanitation only. +- **OpenRouter** applies its app-attribution headers and Anthropic `cache_control` markers only on verified `openrouter.ai` routes. DeepSeek, Moonshot, and ZAI refs are cache-TTL eligible for OpenRouter-managed prompt caching but do not receive Anthropic cache markers. As a proxy-style OpenAI-compatible path, it skips native-OpenAI-only shaping (`serviceTier`, Responses `store`, prompt-cache hints, OpenAI reasoning-compat). Gemini-backed refs keep proxy-Gemini thought-signature sanitation only. - **Kilo Gateway** Gemini-backed refs follow the same proxy-Gemini sanitation path; `kilocode/kilo/auto` and other proxy-reasoning-unsupported refs skip proxy reasoning injection. - **MiniMax** API-key onboarding writes explicit text-only M2.7 chat model definitions; image understanding stays on the plugin-owned `MiniMax-VL-01` media provider. - **xAI** uses the xAI Responses path. `/fast` or `params.fastMode: true` rewrites `grok-3`, `grok-3-mini`, `grok-4`, and `grok-4-0709` to their `*-fast` variants. `tool_stream` defaults on; disable via `agents.defaults.models["xai/"].params.tool_stream=false`. diff --git a/docs/reference/prompt-caching.md b/docs/reference/prompt-caching.md index 3c5fa8011..794a3b8e9 100644 --- a/docs/reference/prompt-caching.md +++ b/docs/reference/prompt-caching.md @@ -123,7 +123,7 @@ Per-agent heartbeat is supported at `agents.list[].heartbeat`. - Anthropic Claude model refs (`amazon-bedrock/*anthropic.claude*`) support explicit `cacheRetention` pass-through. - Non-Anthropic Bedrock models are forced to `cacheRetention: "none"` at runtime. -### OpenRouter Anthropic models +### OpenRouter models For `openrouter/anthropic/*` model refs, OpenClaw injects Anthropic `cache_control` on system/developer prompt blocks to improve prompt-cache @@ -131,6 +131,11 @@ reuse only when the request is still targeting a verified OpenRouter route (`openrouter` on its default endpoint, or any provider/base URL that resolves to `openrouter.ai`). +For `openrouter/deepseek/*`, `openrouter/moonshot*/*`, and `openrouter/zai/*` +model refs, `contextPruning.mode: "cache-ttl"` is allowed because OpenRouter +handles provider-side prompt caching automatically. OpenClaw does not inject +Anthropic `cache_control` markers into those requests. + If you repoint the model at an arbitrary OpenAI-compatible proxy URL, OpenClaw stops injecting those OpenRouter-specific Anthropic cache markers.