Update tool parser and related documentation (#11223)

This commit is contained in:
Xinyuan Tong
2025-10-07 11:03:40 -07:00
committed by GitHub
parent 6f1e03a456
commit e3c7f09146
3 changed files with 25 additions and 13 deletions

View File

@@ -528,7 +528,13 @@ class ServerArgs:
self._handle_other_validations()
def _handle_deprecated_args(self):
pass
# handle deprecated tool call parsers
deprecated_tool_call_parsers = {"qwen25": "qwen", "glm45": "glm"}
if self.tool_call_parser in deprecated_tool_call_parsers:
logger.warning(
f"The tool_call_parser '{self.tool_call_parser}' is deprecated. Please use '{deprecated_tool_call_parsers[self.tool_call_parser]}' instead."
)
self.tool_call_parser = deprecated_tool_call_parsers[self.tool_call_parser]
def _handle_missing_default_values(self):
if self.tokenizer_path is None: