Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit 5a60699

Browse files
authored
[Bugfix]: Fix the logic for deciding if tool parsing is used (vllm-project#8366)
1 parent b6c75e1 commit 5a60699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/entrypoints/openai/serving_chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ async def chat_completion_full_generator(
607607

608608
# if auto tools are not enabled, and a named tool choice using
609609
# outlines is not being used
610-
if not (self.enable_auto_tools
610+
if (not self.enable_auto_tools
611611
or not self.tool_parser) and not isinstance(
612612
request.tool_choice,
613613
ChatCompletionNamedToolChoiceParam):

0 commit comments

Comments
 (0)