Signed-off-by: Shijin Zhang <75300765+Dovis01@users.noreply.github.com> Co-authored-by: Flora Feng <4florafeng@gmail.com>
15 lines
578 B
Python
15 lines
578 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
from __future__ import annotations
|
|
|
|
from vllm.parser.engine.registered_adapters import Glm47MoeParserToolAdapter
|
|
from vllm.tool_parsers.tool_strict_level import ToolStrictLevel
|
|
|
|
|
|
class Glm47MoeModelToolParser(Glm47MoeParserToolAdapter): # type: ignore[valid-type, misc]
|
|
supports_required_and_named = False
|
|
structural_tag_model = "glm_4_7"
|
|
# Constrain auto tool calls with the shallow tag by default.
|
|
default_tool_strict_level = ToolStrictLevel.FUNCTION
|