[Bugfix] Preserve Anthropic disable_parallel_tool_use (#52021)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>

Taneem Ibrahim committed Aug 13, 2026 at 14:25 UTC d0ae25e2f283c96e4c5c6f9000f945209f871a4f
2 files changed +4
vllm/entrypoints/anthropic/protocol.py
+1
@@ -95,6 +95,7 @@ class AnthropicToolChoice(BaseModel):
95
96 type: Literal["auto", "any", "tool", "none"]
97 name: str | None = None
98 + disable_parallel_tool_use: bool | None = None
99
100 @model_validator(mode="after")
101 def validate_name_required_for_tool(self) -> "AnthropicToolChoice":
vllm/entrypoints/anthropic/serving.py
+3
@@ -539,6 +539,9 @@ class AnthropicServingMessages(OpenAIServingChat):
539 req.tool_choice = None
540 return
541
542 + req.parallel_tool_calls = (
543 + not anthropic_request.tool_choice.disable_parallel_tool_use
544 + )
545 tool_choice_type = anthropic_request.tool_choice.type
546 if tool_choice_type == "auto":
547 req.tool_choice = "auto"