Open
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
📚 Mintlify Preview Links✨ Added (1 total)📄 Pages (1)
📝 Changed (1 total)⚙️ Other (1)
🤖 Generated automatically when Mintlify deployment succeeds |
Contributor
🔗 Link Checker Results✅ All links are valid! No broken links were detected. Checked against: https://wb-21fd5541-codex-prefix-caching-docs.mintlify.app |
Contributor
|
Tagging @jamie-rasmussen for technical review to start with, since he was involved in the Slack thread. 🙏 |
jamie-rasmussen
requested changes
Apr 1, 2026
| "content": "Summarize this document in one sentence: <long shared prefix here>" | ||
| }, | ||
| ], | ||
| cache_salt="tenant-a-user-123-secret", |
Contributor
There was a problem hiding this comment.
@corbt I don't think this works - gives you TypeError: Completions.create() got an unexpected keyword argument 'cache_salt'
I think you can replace with something like:
extra_body={
"cache_salt": "tenant-a-user-123-secret",
},
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
Add a new W&B Inference docs page for prefix caching and cache isolation, and add it to the English Inference "Response Settings" nav.
Motivation
Motivating Slack thread:
https://weightsandbiases.slack.com/archives/C08RU04P36G/p1774553788470369
A customer is worried about security on a multi-tenant installation, and we want to show that we take that concern seriously. This page explains how prefix caching works at a high level and how
cache_saltcan be used to isolate cache reuse across trust boundaries.Notes
chat-completionspage simple instead of documenting one advanced parameter there while more basic request parameters are still undocumented.https://api.inference.wandb.ai/v1/chat/completionsonmoonshotai/Kimi-K2.5:cache_saltreused almost the entire prompt cachecache_saltforced a cold misscache_saltreturned a400