Commit 3064c69
committed
Handle missing opening tag in reasoning extraction
Some models (like Qwen3 thinking models) occasionally output reasoning
content without the opening <think> tag but include the closing </think>.
Added fallback detection that:
- Checks for closing tags when opening tags are missing
- Splits content on closing tag to extract reasoning
- Reports detection as "</think> (missing open tag)" in troubleshooting1 parent 079daf6 commit 3064c69
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
371 | 383 | | |
372 | 384 | | |
373 | 385 | | |
| |||
0 commit comments