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
I’d like to request a small enhancement to the Gemini CLI OpenAI proxy: exposing token usage details in the JSON response.
When you call the official OpenAI API, each response includes a tokenUsage object, for example:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I’d like to request a small enhancement to the Gemini CLI OpenAI proxy: exposing token usage details in the JSON response.
When you call the official OpenAI API, each response includes a tokenUsage object, for example:
This makes it easy to track usage for cost monitoring, analytics, and debugging.
Is it possible to access the underlying Gemini token counts (or approximate them) within our Workers runtime and pass this information to the caller?
Beta Was this translation helpful? Give feedback.
All reactions