Skip to content

Commit 1ca7cb3

Browse files
tomeras91Alvant
authored andcommitted
[Bugfix]: Fix the logic for deciding if tool parsing is used (vllm-project#8366)
Signed-off-by: Alvant <alvasian@yandex.ru>
1 parent c36e21b commit 1ca7cb3

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)