mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 22:00:22 +00:00
docs: refresh google cached content refs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user