OpenAI Node SDK v7.8.0 adds compute_units to usage objects and WebSocket User-Agent + audit log events

OpenAI

Tools official 1 src. ~1 min

Released Aug 27, 2026. Adds a compute_units field to Responses and Chat Completions usage objects. WebSocket connections now send a default User-Agent header and emit audit log events for connection lifecycle, so server-side logs and metrics can identify the client. Workload-identity refresh buffer clamped to the token lifetime to avoid premature expiry. X.509 first-class workload credentials secured. WebSocket waiters settle even when listeners throw. Multipart body detection now relies only on own properties, reducing prototype-chain false positives. Native browser ESM imports restored.

Why it matters

compute_units in usage is a billing-observability hook that downstream cost-monitoring and token-budgeting tools can pick up immediately; default WS User-Agent and audit events materially improve production traceability of streaming agent loops.

Importance: 4/5

flagship release; official confirmation

Sources