mirror of
https://github.com/oobabooga/textgen.git
synced 2026-07-23 11:20:54 -05:00
Fix Gemma 4 thinking tags not hidden after tool calls (closes #7509)
This commit is contained in:
@@ -8,6 +8,7 @@ THINKING_FORMATS = [
|
||||
('<|channel|>commentary<|message|>', '<|end|>', '<|channel|>final<|message|>'),
|
||||
('<seed:think>', '</seed:think>', None),
|
||||
('<|channel>thought', '<channel|>', None), # Gemma 4
|
||||
('thought\n', '<channel|>', None), # Gemma 4 (after tool responses, <|channel> may be absent)
|
||||
('<|think|>', '<|end|>', '<|content|>'), # Solar Open
|
||||
# ('Thinking Process:', '</think>', None), # Qwen3.5 verbose thinking outside tags -- removed: too prone to false positives in streaming
|
||||
(None, '</think>', None), # End-only variant (e.g., Qwen3-next)
|
||||
|
||||
Reference in New Issue
Block a user