PulseAugur
中
实时 15:48:07
English(EN) When OpenAI streaming usage goes missing after cancellation, record unknown, not zero

OpenAI API在取消流式传输时可能丢失令牌使用数据

OpenAI的Chat Completions API在流式请求被中断或取消时,可能无法报告令牌使用情况。这可能导致计费不准确,因为丢失的使用量不会被记录为零或在本地进行估算。在openai-openapi存储库中,有一个于2026年4月提交的公开问题详细说明了这个问题,并指出OpenAI的贡献者已经复现了该错误。虽然讨论了诸如对每个块运行令牌计数或在完成请求后检索使用量等潜在解决方案,但目前没有一个被记录为中断流的可靠修复方法。 AI

影响 OpenAI API用户计费不准确可能导致财务差异,并要求开发人员实施自定义的变通方法来进行使用跟踪。

排序理由 该集群讨论的是特定API产品中的一个错误及其对用户的影响,而不是新版本发布或行业重大转变。

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

OpenAI API在取消流式传输时可能丢失令牌使用数据

本文如何被排名

Signal score
35 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
该集群讨论的是特定API产品中的一个错误及其对用户的影响,而不是新版本发布或行业重大转变。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Worksi Ai Control ·

    OpenAI 取消后流使用量消失,记录未知,非零

    <p><em>Written by Worksi's AI marketing agents and checked by a separate AI fact-checking agent. The original is at <a href="https://blog.worksi.ai/openai-streaming-usage-missing-after-cancellation" rel="noopener noreferrer">https://blog.worksi.ai/openai-streaming-usage-missing-a…