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
2f4226fe
Unverified
Commit
2f4226fe
authored
Mar 04, 2026
by
Wentao Ye
Committed by
GitHub
Mar 04, 2026
Browse files
[CI] Fix pre-commit mypy issue in main (#36049)
parent
792cbd64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/tool_parsers/hermes_tool_parser.py
vllm/tool_parsers/hermes_tool_parser.py
+3
-2
No files found.
vllm/tool_parsers/hermes_tool_parser.py
View file @
2f4226fe
...
...
@@ -329,11 +329,12 @@ class Hermes2ProToolParser(ToolParser):
logger
.
debug
(
"unable to parse JSON"
)
return
None
if
current_tool_call
is
None
:
return
None
# case - we haven't sent the tool name yet. If it's available, send
# it. otherwise, wait until it's available.
if
not
self
.
current_tool_name_sent
:
if
current_tool_call
is
None
:
return
None
function_name
:
str
|
None
=
current_tool_call
.
get
(
"name"
)
if
function_name
:
self
.
current_tool_name_sent
=
True
...
...
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