{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreif4srkeupkh72uns52ym3urk3ru2kw5skgtg3fexvge7ya7dqfari",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mmqrqfovasz2"
},
"path": "/t/cancelling-stream-does-not-show-usage/1377768#post_9",
"publishedAt": "2026-05-26T10:04:15.000Z",
"site": "https://community.openai.com",
"textContent": "I tried reproducing this again, and the usage data does show up now, but there’s a delay.\n\nIn my test, the immediate cancel() response still had usage: null, but polling/retrieving the response later showed usage populated. Most runs had usage appear around ~45-50 seconds after cancellation.\n\nSo the practical workaround is: after cancelling a background streaming response, don’t rely on the immediate cancel response for usage. Poll responses.retrieve(response_id) for a bit afterward, and expect usage to show up after some delay rather than instantly.",
"title": "Cancelling Stream Does Not Show Usage"
}