fix(MiMo-V2-Flash): add mimo reasoning parser (#21414)

This commit is contained in:
shuwenn
2026-04-02 00:47:27 +08:00
committed by GitHub
parent c9f5d1d502
commit 6098c51bc2
2 changed files with 7 additions and 0 deletions
@@ -1268,6 +1268,12 @@ class OpenAIServingChat(OpenAIServingBase):
not request.chat_template_kwargs
or request.chat_template_kwargs.get("enable_thinking") is not False
)
if self.reasoning_parser in ["mimo"]:
# Models that require explicit enable thinking (enable_thinking=True)
return (
request.chat_template_kwargs is not None
and request.chat_template_kwargs.get("enable_thinking") is True
)
if self.reasoning_parser in ["mistral"]:
# Mistral models only reason when reasoning_effort is explicitly
# set to a value other than None/"none" (typically "high").
@@ -495,6 +495,7 @@ class ReasoningParser:
"gpt-oss": GptOssDetector,
"kimi": KimiDetector,
"kimi_k2": KimiK2Detector,
"mimo": Qwen3Detector,
"qwen3": Qwen3Detector,
"qwen3-thinking": Qwen3Detector,
"minimax": Qwen3Detector,