Commit 155293f
fix: make delta field optional in ChunkChoice
The final streaming chunk from some providers contains only finish_reason
and usage, with no delta field. Made it optional to prevent parse errors.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent ef8b03f commit 155293f
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
| 793 | + | |
793 | 794 | | |
794 | 795 | | |
795 | 796 | | |
| |||
0 commit comments