Reasoning: Add template with <think> without newlines Fixes #4932

b2c320dc0b6f98140b00cf3a9ada9fb3bebce5a1

Cohee <18619528+Cohee1207@users.noreply.github.com>

3 files changed, +11 -1Showing whitespace changes
default/content/index.json+4 -0
@@ -638,5 +638,9 @@
638638 {
639639 "filename": "presets/reasoning/OpenAI Harmony.json",
640640 "type": "reasoning"
641+ },
642+ {
643+ "filename": "presets/reasoning/Think XML.json",
644+ "type": "reasoning"
641645 }
642646]
default/content/presets/reasoning/Think XML.json+6 -0
@@ -0,0 +1,6 @@
1+{
2+ "name": "Think XML",
3+ "prefix": "<think>",
4+ "suffix": "</think>",
5+ "separator": "\n"
6+}
public/scripts/reasoning.js+1 -1
@@ -31,7 +31,7 @@ import { copyText, escapeRegex, isFalseBoolean, isTrueBoolean, setDatasetPropert
3131 */
3232export const reasoning_templates = [];
3333
3434export const DEFAULT_REASONING_TEMPLATE = 'DeepSeekThink XML';
3535
3636/**
3737 * @type {Record<string, JQuery<HTMLElement>>} List of UI elements for reasoning settings