@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 3c23ac840e
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 7, 05:15 UTC

[Bugfix] Fix mypy errors in hermes_tool_parser.py (#36114)

Signed-off-by: Shiyan Deng <dsy842974287@meta.com>

Shiyan Deng committed Mar 5, 2026 at 03:37 UTC 3c23ac840e758e7b4ff34752e25d9eac12e4a3da
1 file changed +3
vllm/tool_parsers/hermes_tool_parser.py
+3
@@ -368,6 +368,9 @@ class Hermes2ProToolParser(ToolParser):
368 # now, the nitty-gritty of tool calls
369 # now we have the portion to parse as tool call.
370
371 + if current_tool_call is None:
372 + return None
373 +
374 logger.debug(
375 "Trying to parse current tool call with ID %s", self.current_tool_id
376 )