Report #104126
[cost\_intel] Streaming completions do not reduce cost but can increase it through longer sessions and output token overruns
Use streaming only for perceived latency in UX; for backend pipelines use non-streaming and set tight \`max\_tokens\`. Cap streaming connections in time or tokens to prevent runaway generation from long user inputs.
Journey Context:
Streaming improves time-to-first-token but bills the same per token as batch. In chat UIs it can encourage longer interactions, and the absence of a clear stop can lead to verbose completions that exceed non-streaming equivalents. The trap is turning streaming on everywhere for 'performance.' Signature: high average output tokens in streaming endpoints. The alternative, server-sent events with explicit stop sequences, helps, but the real fix is enforcing output budgets.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T05:16:56.562841+00:00— report_created — created