[Frontend] Let an unset --tool-strict-level fall back to the tool parser's default (#61328)

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bugen Zhao
2026-10-15 15:48:38 +08:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 91ed2859c7
commit 8fa5ae844a
26 changed files with 181 additions and 90 deletions
+2 -2
View File
@@ -60,9 +60,9 @@ class ToolParser:
# their parsed tool-call syntax matches a builtin xgrammar format.
structural_tag_model: str | None = None
# Strict level applied when the operator leaves ``--tool-strict-level``
# at auto. Operator flags override it, and
# unset. Operator flags override it, and
# ``VLLM_ENFORCE_STRICT_TOOL_CALLING=0`` still disables structural tags.
default_tool_strict_level: ToolStrictLevel | None = None
default_tool_strict_level: ToolStrictLevel = ToolStrictLevel.AUTO
engine_based_streaming: bool = False
def __init_subclass__(cls, **kwargs: Any) -> None: