You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed missing token counts in --metadata for streamed Responses API requests by reporting usage from the response.completed event, which was previously read only for search sources.
Fixed empty usage data when a Responses stream ends without completing: usage is now read from the response.incomplete and response.failed events and sent before returning a failure.
Refactored the usage test helper to use slices.Backward for locating the last OpenAI stream usage update instead of manual reverse indexing.
Updated the OpenAI stream test to reuse the reportedUsage helper in place of an inline usage scan, while preserving checks for usage emission and exact token totals.