Structs§
- Anthropic
Prompt Cache Settings - Anthropic Claude cache control settings
- Deep
Seek Prompt Cache Settings - DeepSeek prompt caching configuration (automatic KV cache reuse)
- Gemini
Prompt Cache Settings - Gemini API caching preferences
- Moonshot
Prompt Cache Settings - Moonshot prompt caching configuration (leverages server-side reuse)
- OpenAI
Prompt Cache Settings - OpenAI prompt caching controls (automatic with metrics)
- Open
Router Prompt Cache Settings - OpenRouter passthrough caching controls
- Prompt
Caching Config - Global prompt caching configuration loaded from vtcode.toml
- Provider
Prompt Caching Config - Per-provider configuration overrides
- ZaiPrompt
Cache Settings - Z.AI prompt caching configuration (disabled until platform exposes metrics)
Enums§
- Gemini
Prompt Cache Mode - Gemini prompt caching mode selection
- OpenAI
Prompt Cache KeyMode - OpenAI prompt cache key derivation mode.
- Prompt
Cache Retention - OpenAI prompt cache retention policy. Controls the model-side prompt caching window.
Functions§
- build_
openai_ prompt_ cache_ key - Build a stable OpenAI
prompt_cache_keyfor requests that should share provider-side cache routing. - build_
session_ affinity_ prompt_ cache_ key - Build the namespaced session-affinity / prompt-cache key for a request.
- map_
prompt_ cache_ key_ for_ provider - Rewrite an OpenAI-style cache key for routes that share the wire shape but need distinct routing stickiness. Keeps the stable session identifier while namespacing gateway/session-affinity traffic apart from native OpenAI.
- session_
affinity_ key_ enabled - Whether
LLMRequest.prompt_cache_keyshould carry session lineage for this provider. - session_
affinity_ provider - Providers that send lineage-stable session/cache identity on the wire.