Add Anthropic Token Usage Callback Handler #25433
shahad-mahmud
announced in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Add
AnthropicTokenUsageCallbackHandler
and related functions to track Anthropic usage and cost. I know there is a callback handler for Bedrock Anthropic models, but no callback handler for the Anthropic APIs.Motivation
The OpenAI callback handler makes it convenient to track OpenAI usage. Similar to Antropic would make the development experience easier.
Proposal (If applicable)
I can implement the callback handler and create a PR with the help of the contributors and maintainers.
Beta Was this translation helpful? Give feedback.
All reactions