[Frontend] Add cache_salt support to Anthropic Messages API (#49498)

Signed-off-by: aeon-x <talexcao@gmail.com>
This commit is contained in:
Cao Qian
2026-08-01 07:36:42 +00:00
committed by GitHub
parent 77469c9057
commit 81a42d37b1
3 changed files with 35 additions and 0 deletions
+11
View File
@@ -133,6 +133,17 @@ class AnthropicMessagesRequest(BaseModel):
top_p: float | None = None
# vLLM-specific fields that are not in Anthropic spec
cache_salt: str | None = Field(
default=None,
description=(
"If specified, the prefix cache will be salted with the provided "
"string to prevent an attacker to guess prompts in multi-user "
"environments. The salt should be random, protected from "
"access by 3rd parties, and long enough to be "
"unpredictable (e.g., 43 characters base64-encoded, corresponding "
"to 256 bit)."
),
)
kv_transfer_params: dict[str, Any] | None = Field(
default=None,
description="KVTransfer parameters used for disaggregated serving.",