Commit c89d61d
committed
gptel-request: Fix blank response check inside reasoning block
* gptel-request.el (gptel-curl--stream-filter): Update reasoning
block parsing logic when streaming. Now:
1. blank response chunks before reasoning blocks are ignored by
the reasoning parser. (Same as before)
2. blank response chunks inside a reasoning block are captured as
reasoning text by the parser. (New behavior)
Without this, reasoning text consisting of blank strings is
categorized as a response, causing the reasoning block demarcation
to fail and additional "#+begin_reasoning" (or equivalent markup)
to be inserted by gptel's default streaming callback.1 parent 98009c1 commit c89d61d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2764 | 2764 | | |
2765 | 2765 | | |
2766 | 2766 | | |
2767 | | - | |
| 2767 | + | |
| 2768 | + | |
2768 | 2769 | | |
2769 | 2770 | | |
2770 | 2771 | | |
| |||
0 commit comments