docs(ui): state that Anthropic prompt caches are shared per upstream credential

The provider caches a prefix against the credentials that sent it, not per end user, so
turning the flag on makes every caller's prompts cacheable on that shared account. Surface
that where the toggle is, since it is the operator's call to make.
This commit is contained in:
Tin Chi Lo 2026-07-16 15:54:53 -07:00
parent 9f7f53a82a
commit 16e39542a0

View file

@ -14826,7 +14826,11 @@ _GENERAL_SETTINGS_UI_LITELLM_FIELDS: dict[str, GeneralSettingsUILiteLLMFieldSpec
"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."
"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."
),
},
"anthropic_prompt_caching_ttl": {