"...git@developer.sourcefind.cn:2222/OpenDAS/vllm_cscc.git" did not exist on "7b03584de8819a870644bc853cf24cd2ff8a9f64"
Unverified Commit 2f4226fe authored by Wentao Ye's avatar Wentao Ye Committed by GitHub
Browse files

[CI] Fix pre-commit mypy issue in main (#36049)

parent 792cbd64
...@@ -329,11 +329,12 @@ class Hermes2ProToolParser(ToolParser): ...@@ -329,11 +329,12 @@ class Hermes2ProToolParser(ToolParser):
logger.debug("unable to parse JSON") logger.debug("unable to parse JSON")
return None return None
if current_tool_call is None:
return None
# case - we haven't sent the tool name yet. If it's available, send # case - we haven't sent the tool name yet. If it's available, send
# it. otherwise, wait until it's available. # it. otherwise, wait until it's available.
if not self.current_tool_name_sent: if not self.current_tool_name_sent:
if current_tool_call is None:
return None
function_name: str | None = current_tool_call.get("name") function_name: str | None = current_tool_call.get("name")
if function_name: if function_name:
self.current_tool_name_sent = True self.current_tool_name_sent = True
......
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