docs: document the Anthropic automatic prompt caching env vars - #594
Merged
tin-berri merged 6 commits intoJul 17, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents automatic Anthropic prompt caching across the environment settings reference and prompt caching tutorial. The reference adds
LITELLM_ENABLE_ANTHROPIC_PROMPT_CACHINGandLITELLM_ANTHROPIC_PROMPT_CACHING_TTL; the tutorial explains the provider-credential sharing boundary, gateway-wide checkpoint injection for Claude models, supported models and endpoints, TTL and precedence rules, and when to use manual injection points insteadThese variables were added in BerriAI/litellm#33573. Its
documentationjob checks this repo's default branch and stays red until every environment variable read by the codebase has a row indocs/proxy/config_settings.md. The validation exits 0 against this branch and reports both keys as undocumented without the new rowsThe rows remain alphabetized among the existing
LITELLM_ANTHROPIC_*settings. A local Docusaurus production build also completes successfullyScreenshots
Rendered from current head
40174df1using the local Docusaurus production buildLink to Devin session: https://app.devin.ai/sessions/f03da2725ec94d28b3facf766871b102