github danielmiessler/Fabric v1.4.581

35 minutes ago

Changes

PR #2353 by pcbeingused333 and ksylvan: fix(openai): report usage from the Responses API stream

  • 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.

Don't miss a new Fabric release

NewReleases is sending notifications on new releases.