Commit 7692aab
committed
fix: strip thinking tokens from non-streaming responses (v0.12.84)
Free models leak <think>...</think> blocks in non-streaming responses.
stripThinkingTokens() was only called in the streaming path — now also
applied to non-streaming JSON responses before notice injection.1 parent 8ce39a6 commit 7692aab
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4415 | 4415 | | |
4416 | 4416 | | |
4417 | 4417 | | |
| 4418 | + | |
| 4419 | + | |
| 4420 | + | |
| 4421 | + | |
| 4422 | + | |
| 4423 | + | |
| 4424 | + | |
| 4425 | + | |
| 4426 | + | |
| 4427 | + | |
| 4428 | + | |
| 4429 | + | |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
| 4433 | + | |
| 4434 | + | |
| 4435 | + | |
4418 | 4436 | | |
4419 | 4437 | | |
4420 | 4438 | | |
| |||
0 commit comments