Read input_tokens/output_tokens and input_tokens_details.cached_tokens
for OpenAI Responses JSON, and response.usage from response.completed
SSE events. Decode the Gemini streamGenerateContent JSON array and read
usageMetadata from Gemini SSE data events, last one wins.
Field names follow the OpenAI Responses API and Gemini
GenerateContentResponse references. A truncated array yields no usage.