Skip to content

Commit 4f0bba4

Browse files
tomeras91Jeffwan
authored andcommitted
[Bugfix]: Fix the logic for deciding if tool parsing is used (vllm-project#8366)
1 parent fe4f2e6 commit 4f0bba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/entrypoints/openai/serving_chat.py

+1-1
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)