From 42e8718d3da7516def7b62ed46d8cf64bc5e5bb9 Mon Sep 17 00:00:00 2001 From: Sidhartha Reddy Potu <73529763+sid-rp@users.noreply.github.com> Date: Fri, 14 Aug 2026 13:43:48 -0700 Subject: [PATCH] fix(muse-glimmer): parse required/named tool calls natively (#34781) Co-authored-by: Xinyuan Tong --- python/sglang/srt/function_call/muse_glimmer_detector.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/sglang/srt/function_call/muse_glimmer_detector.py b/python/sglang/srt/function_call/muse_glimmer_detector.py index 6c9cb02d3..15519c1a9 100644 --- a/python/sglang/srt/function_call/muse_glimmer_detector.py +++ b/python/sglang/srt/function_call/muse_glimmer_detector.py @@ -251,6 +251,11 @@ class MuseGlimmerDetector(BaseFormatDetector): def supports_structural_tag(self) -> bool: return False + def parses_required_natively(self) -> bool: + """The model only ever emits ATEM tool calls, so the JSON-array grammar + the default required/named path forces cannot parse its output.""" + return True + def structure_info(self) -> _GetInfoFunc: return lambda name: StructureInfo( begin=f'{FUNCTION_CALLS_OPEN}\n{INVOKE_OPEN} name="{name}">',