Commit 81a8c02
committed
fix: preserve non-empty reasoning_content during coalescing
When coalescing consecutive assistant messages, an empty
reasoning_content fallback ("") would overwrite a non-empty
thinking text from a previous message. Now we only overwrite
when the incoming value is non-empty or the existing value
is already empty/undefined.1 parent ae739c9 commit 81a8c02
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | | - | |
755 | | - | |
756 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
763 | 767 | | |
764 | 768 | | |
765 | 769 | | |
| |||
0 commit comments