docs: refresh google cached content refs

This commit is contained in:
Peter Steinberger
2026-04-04 12:10:29 +01:00
parent 49bf527fd4
commit 6bbccb087a
3 changed files with 44 additions and 0 deletions

View File

@@ -127,6 +127,17 @@ stops injecting those OpenRouter-specific Anthropic cache markers.
If the provider does not support this cache mode, `cacheRetention` has no effect.
### Google Gemini direct API
- Direct Gemini transport (`api: "google-generative-ai"`) reports cache hits
through upstream `cachedContentTokenCount`; OpenClaw maps that to `cacheRead`.
- If you already have a Gemini cached-content handle, you can pass it through as
`params.cachedContent` (or legacy `params.cached_content`) on the configured
model.
- This is separate from Anthropic/OpenAI prompt-prefix caching. OpenClaw is
forwarding a provider-native cached-content reference, not synthesizing cache
markers.
## OpenClaw cache-stability guards
OpenClaw also keeps several cache-sensitive payload shapes deterministic before