fix(MiMo-V2-Flash): add mimo reasoning parser (#21414)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user