streamOptions: without include_usage, OpenAI-compatible servers omit the usage block in the SSE tail chunk and the per-turn token counter sits at 0.
| 83 | |
| 84 | // streamOptions: without include_usage, OpenAI-compatible servers omit the |
| 85 | // usage block in the SSE tail chunk and the per-turn token counter sits at 0. |
| 86 | type streamOptions struct { |
| 87 | IncludeUsage bool `json:"include_usage"` |
| 88 | } |
| 89 | |
| 90 | // streamChunk is one OpenAI SSE frame. finish_reason is deliberately never |
nothing calls this directly
no outgoing calls
no test coverage detected