Commit cb95e26
committed
fix(logging): exclude per-chunk results from assembled stream check
_is_assembled_stream_success is documented as detecting the final
assembled stream export, but the previous logic returned True for any
streaming call with a non-None result, including per-chunk
ModelResponseStream values. This created a fragile contract where a
future caller passing a chunk to dispatch_success_handlers would
prematurely set the has_dispatched_final_stream_success dedup guard
and silently suppress the real final stream log. Tighten the check to
treat only non-ModelResponseStream results as assembled responses.1 parent f770d8e commit cb95e26
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1624 | 1624 | | |
1625 | 1625 | | |
1626 | 1626 | | |
1627 | | - | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
1628 | 1635 | | |
1629 | 1636 | | |
1630 | | - | |
| 1637 | + | |
1631 | 1638 | | |
1632 | 1639 | | |
1633 | 1640 | | |
| |||
0 commit comments