Unverified Commit 5a60699c authored by tomeras91's avatar tomeras91 Committed by GitHub
Browse files

[Bugfix]: Fix the logic for deciding if tool parsing is used (#8366)

parent b6c75e1c
......@@ -607,7 +607,7 @@ class OpenAIServingChat(OpenAIServing):
# if auto tools are not enabled, and a named tool choice using
# outlines is not being used
if not (self.enable_auto_tools
if (not self.enable_auto_tools
or not self.tool_parser) and not isinstance(
request.tool_choice,
ChatCompletionNamedToolChoiceParam):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment