Handle Qwen 3.5 thinking blocks

This commit is contained in:
oobabooga 2026-03-06 19:01:28 -08:00
parent 5fa709a3f4
commit 7ea5513263

View file

@ -115,6 +115,7 @@ THINKING_FORMATS = [
('<|channel|>analysis<|message|>', '<|end|>', '<|start|>assistant<|channel|>final<|message|>'),
('<seed:think>', '</seed:think>', None),
('<|think|>', '<|end|>', '<|content|>'), # Solar Open
('Thinking Process:', '</think>', None), # Qwen3.5 verbose thinking outside tags
(None, '</think>', None), # End-only variant (e.g., Qwen3-next)
]