[Bugfix][Frontend] Constrain Anthropic cache_salt to non-empty (#50764)

Signed-off-by: Omkar Shewale <omkarshewale2001@gmail.com>
Signed-off-by: Andreas Karatzas <Andreas.Karatzas@amd.com>
Co-authored-by: Andreas Karatzas <akaratza@amd.com>
Co-authored-by: Andreas Karatzas <Andreas.Karatzas@amd.com>
This commit is contained in:
Omkar Shewale
2026-08-03 13:33:14 +08:00
committed by GitHub
co-authored by Andreas Karatzas Andreas Karatzas
parent 5e35a6f4f9
commit f5bb701fa2
2 changed files with 49 additions and 0 deletions
+1
View File
@@ -135,6 +135,7 @@ class AnthropicMessagesRequest(BaseModel):
# vLLM-specific fields that are not in Anthropic spec
cache_salt: str | None = Field(
default=None,
min_length=1,
description=(
"If specified, the prefix cache will be salted with the provided "
"string to prevent an attacker to guess prompts in multi-user "