Commit 62d4e18
authored
fix: concatenate reasoning field in streaming response consolidation (#5578)
consolidateTextFields() only concatenated content and function_call
from streaming deltas, but not reasoning. This meant reasoning tokens
from providers like Gemini with thinking/reasoning would get
last-chunk-wins behavior instead of proper concatenation.
Adds reasoning field handling alongside content in the delta
consolidation logic.1 parent d7ebdcb commit 62d4e18
File tree
1 file changed
+4
-0
lines changed- worker/src/lib/dbLogger/streamParsers
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments