Skip to content

Commit

Permalink
fix logic again following PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeras91 committed Sep 11, 2024
1 parent 48052a9 commit 5516663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/entrypoints/openai/serving_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,8 @@ async def chat_completion_full_generator(

# if auto tools are not enabled, and a named tool choice using
# outlines is not being used
if not (self.enable_auto_tools
and not self.tool_parser) and not isinstance(
if (not self.enable_auto_tools
or not self.tool_parser) and not isinstance(
request.tool_choice,
ChatCompletionNamedToolChoiceParam):
message = ChatMessage(role=role, content=output.text)
Expand Down

0 comments on commit 5516663

Please sign in to comment.