The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
feat(ui): tighten the Prompt Caching descriptions
Tin Chi Lo4e5f4884523e
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex 6725ecdb584..7d87207f7a9 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -14825,25 +14825,15 @@ _GENERAL_SETTINGS_UI_LITELLM_FIELDS: dict[str, GeneralSettingsUILiteLLMFieldSpec"type": "Boolean","tab": "prompt_caching","description": (- "Automatically add Anthropic cache_control breakpoints to the system prompt and the "- "trailing turn, for Anthropic and Bedrock Claude models that support prompt caching. "- "Lets clients that never set cache_control themselves still get cached prompts. "- "Requests that already carry their own cache_control are left untouched. "- "The provider caches a prefix against the upstream credentials that sent it, not per "- "end user, so this makes every caller's prompts cacheable on that shared account. "- "Leave this off if callers sharing a set of credentials must not learn whether "- "another caller recently sent a given prompt."+ "Auto-adds cache_control to the system prompt and trailing turn for supported Anthropic "+ "and Bedrock Claude models. The cache is shared across callers on the same upstream credentials."),},"anthropic_prompt_caching_ttl": {"type": "Select","options": ("5m", "1h"),"tab": "prompt_caching",- "description": (- "Cache lifetime for the breakpoints added by 'enable_anthropic_prompt_caching'. "- "Leave empty for Anthropic's 5m default. 1h suits long agentic sessions but doubles "- "the cache write premium."- ),+ "description": "Empty uses Anthropic's 5m default. 1h suits long sessions but doubles the cache write cost.",},}diff --git a/ui/litellm-dashboard/src/app/(dashboard)/router-settings/_components/general_settings.tsx b/ui/litellm-dashboard/src/app/(dashboard)/router-settings/_components/general_settings.tsxindex 8cea529d25d..1e8658d5104 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/router-settings/_components/general_settings.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/router-settings/_components/general_settings.tsx@@ -120,11 +120,6 @@ const PromptCachingPanel: React.FC<{return (<Card><Title>Prompt Caching</Title>- <Text className="mt-2">- Automatically inject Anthropic prompt caching for every Anthropic and Bedrock Claude model, so clients that- never set <span className="font-mono">cache_control</span> themselves still get cached prompts. This is a single- gateway-wide switch; there is no per-model setup.- </Text><div className="mt-6 flex items-start justify-between gap-8"><div className="max-w-2xl">