Files
9router/open-sse/executors
Ibrahim Ryan e9ccae4ca1 fix(iflow): inject stream_options for usage data in streaming
Add stream_options: { include_usage: true } to iFlow streaming requests
to get token usage data in the final streaming chunk. This fixes token
counts showing as 0 for iFlow streaming requests.

Only injected when streaming is enabled and body.messages exists (OpenAI
format), and the client hasn't already set stream_options.

Note: Applied only to iFlow executor instead of BaseExecutor to avoid
affecting all providers globally. This gives us more control and allows
testing with iFlow first.

Fixes #74

Co-authored-by: Ibrahim Ryan <ryan@nuevanext.com>
Made-with: Cursor
2026-03-23 12:03:11 +07:00
..
2026-03-12 16:20:46 +07:00
2026-03-12 16:20:46 +07:00
2026-03-14 09:37:29 +07:00
2026-03-12 16:20:46 +07:00
2026-03-12 16:20:46 +07:00
2026-03-14 09:37:29 +07:00
2026-03-14 09:37:29 +07:00