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've found about unified callback handler that is work in progress from this pull request #30534. After migrating to this approach I've noticed the total_cost is missing, which means I am going to have to do all of the calculations myself.
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.
-
Checked
Feature request
Would it be possible to implement how much the
total cost
was in theUsageMetadataCallbackHandler
?Similarly like in the traditional, for example openai callback (
get_openai_callback
) it would also calculate the price of tokens.Motivation
I've found about unified callback handler that is work in progress from this pull request #30534. After migrating to this approach I've noticed the total_cost is missing, which means I am going to have to do all of the calculations myself.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions