Skip to content

Commit 6de1c6e

Browse files
committed
docs: add explanatory comment for Magistral reasoning syntax
1 parent 94ac98e commit 6de1c6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/providers/native-ollama.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ export class NativeOllamaHandler extends BaseProvider implements SingleCompletio
181181
...convertToOllamaMessages(messages),
182182
]
183183

184-
// Use square bracket matcher for Magistral models, XML matcher for others
184+
// Magistral models use square bracket syntax [THINK]...[/THINK] for reasoning blocks
185+
// instead of the XML-style <think>...</think> tags used by other models
185186
const matcher = useMagistralFormat
186187
? new SquareBracketMatcher(
187188
"THINK",

0 commit comments

Comments
 (0)