Commit 244a819
committed
Use FinishReasonNull for EOF fallthrough with no output
When the stream ends via EOF without an explicit finish reason and
produces no content or tool calls, use FinishReasonNull instead of
FinishReasonStop. The provider never signalled natural completion,
so claiming stop would give clients a false signal.1 parent a35226f commit 244a819
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| |||
0 commit comments