Skip to content

docs(llms): document prompt caching - #95

Merged
Mounir-charef merged 2 commits into
mainfrom
docs/prompt-caching
Aug 24, 2026
Merged

Mounir-charef merged 2 commits into
mainfrom
docs/prompt-caching

Conversation

@Mounir-charef

Copy link
Copy Markdown
Member

Summary

  • add a user-facing prompt caching guide for automatic and explicit provider behavior
  • document OpenAI, Anthropic, Bedrock Claude, Gemini, and DeepSeek request and usage formats
  • explain sticky provider affinity, including cache-aware 5m, 10m, 30m, 1h, and 24h routing windows
  • distinguish prompt caching from response caching and link the model catalog and provider routing pages

Validation

  • exercised real prompt cache writes and reads against the local make up-lite stack for OpenAI, Anthropic, Gemini, and DeepSeek
  • verified Chat Completions, Responses, streaming usage, cost normalization, and sticky routing identifiers
  • rebuilt aifeatures and confirmed Anthropic automatic caching writes 9,921 tokens then reads 9,921 tokens on the repeated request
  • ran the focused sticky routing suite: 131 passed
  • validated docs.json and git diff --check

@mintlify

mintlify Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
edenai 🟢 Ready View Preview Aug 24, 2026, 1:35 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 30 minutes.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 57 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e7408159-a24d-4953-aaf6-e7e4a755b9c9

📥 Commits

Reviewing files that changed from the base of the PR and between 4970968 and 8c644e2.

📒 Files selected for processing (5)
  • docs.json
  • v3/general/caching.mdx
  • v3/llms/listing-models.mdx
  • v3/llms/prompt-caching.mdx
  • v3/llms/provider-routing.mdx

Comment @coderabbitai help to get the list of available commands.

@Mounir-charef
Mounir-charef merged commit 579090b into main Aug 24, 2026
4 of 5 checks passed
@Mounir-charef
Mounir-charef deleted the docs/prompt-caching branch August 24, 2026 13:46

This branch was successfully deployed

1 active deployment
staging — 8c644e27 Deployed Aug 24, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant