Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
5a60699c
Unverified
Commit
5a60699c
authored
Sep 12, 2024
by
tomeras91
Committed by
GitHub
Sep 12, 2024
Browse files
[Bugfix]: Fix the logic for deciding if tool parsing is used (#8366)
parent
b6c75e1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/entrypoints/openai/serving_chat.py
vllm/entrypoints/openai/serving_chat.py
+1
-1
No files found.
vllm/entrypoints/openai/serving_chat.py
View file @
5a60699c
...
@@ -607,7 +607,7 @@ class OpenAIServingChat(OpenAIServing):
...
@@ -607,7 +607,7 @@ class OpenAIServingChat(OpenAIServing):
# if auto tools are not enabled, and a named tool choice using
# if auto tools are not enabled, and a named tool choice using
# outlines is not being used
# 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
(
or
not
self
.
tool_parser
)
and
not
isinstance
(
request
.
tool_choice
,
request
.
tool_choice
,
ChatCompletionNamedToolChoiceParam
):
ChatCompletionNamedToolChoiceParam
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment