Commit ecfede6
committed
perf(sdk): release the chat chunk buffer once the response is committed
On a successful turn the buffered chunks are dead weight (the recovered-partial
fallback prefers the onFinish message), yet they were retained through the
end-of-turn idle wait. Clear the buffer once the response is committed so a
completed turn no longer holds a full copy of its streamed output while idle.1 parent 6aeb2b9 commit ecfede6
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7408 | 7408 | | |
7409 | 7409 | | |
7410 | 7410 | | |
| 7411 | + | |
7411 | 7412 | | |
7412 | 7413 | | |
7413 | 7414 | | |
| |||
0 commit comments