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
..
antigravity.js Update Antigravity provider config and headers 2026-03-17 10:12:17 +07:00
base.js Refactor config 2026-03-12 16:20:46 +07:00
codex.js Refactor config 2026-03-12 16:20:46 +07:00
cursor.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
default.js Refactor config 2026-03-12 16:20:46 +07:00
gemini-cli.js Refactor config 2026-03-12 16:20:46 +07:00
github.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
iflow.js fix(iflow): inject stream_options for usage data in streaming 2026-03-23 12:03:11 +07:00
index.js feat: Add Google Cloud Vertex AI provider support (vertex, vertex-partner) 2026-03-14 11:37:23 +07:00
kiro.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
vertex.js feat: Add Google Cloud Vertex AI provider support (vertex, vertex-partner) 2026-03-14 11:37:23 +07:00