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 searched existing ideas and did not find a similar one
I added a very descriptive title
I've clearly described the feature request and motivation for it
Feature request
OpenAI has a callback handler which provides the number of tokens consumed as reported by the API. The Anthropic API has now started reporting similar usage numbers on the API response. It would be really useful to have this implemented for Anthropic.
The following fragment is included in Anthropic responses:
With the advent of Anthropic's multimodal models in Claude 3, this has become more important. The current approach of token counting on the client side no longer works.
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
-
Checked
Feature request
OpenAI has a callback handler which provides the number of tokens consumed as reported by the API. The Anthropic API has now started reporting similar usage numbers on the API response. It would be really useful to have this implemented for Anthropic.
The following fragment is included in Anthropic responses:
Motivation
With the advent of Anthropic's multimodal models in Claude 3, this has become more important. The current approach of token counting on the client side no longer works.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions