-
Notifications
You must be signed in to change notification settings - Fork 394
Open
Labels
Description
response.done
events from the Realtime API do not include the full token usage breakdown shown in the Playground and documentation. Only total input and output counts are returned.
Currently, the event contains only:
"usage": {
"input_tokens": 132,
"output_tokens": 121
}
But the Playground/docs show a full structure:
"usage": {
"total_tokens": 253,
"input_tokens": 132,
"output_tokens": 121,
"input_token_details": {
"text_tokens": 119,
"audio_tokens": 13,
"image_tokens": 0,
"cached_tokens": 64,
"cached_tokens_details": {
"text_tokens": 64,
"audio_tokens": 0,
"image_tokens": 0
}
},
"output_token_details": {
"text_tokens": 30,
"audio_tokens": 91
}
}
Expected behavior: response.done
should return the complete usage object as documented.