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
Previously there where fields client.total_usage_summary and planner.client.actual_usage_summary with the amount of tokens and the costs. There is a class
@dataclass
class RequestUsage:
prompt_tokens: int
completion_tokens: int
but I think apart from the logic being flawed (see #4769, #4719) it also lacks important fields. Most notably the costs and the cached tokens.
I think this should also be mentioned in the Migration Guide.
Why is this needed?
Has been there previously in v2 and seems very useful to have in v4 as well.
The text was updated successfully, but these errors were encountered:
What feature would you like to be added?
Previously there where fields
client.total_usage_summary
andplanner.client.actual_usage_summary
with the amount of tokens and the costs. There is a classbut I think apart from the logic being flawed (see #4769, #4719) it also lacks important fields. Most notably the costs and the cached tokens.
I think this should also be mentioned in the Migration Guide.
Why is this needed?
Has been there previously in v2 and seems very useful to have in v4 as well.
The text was updated successfully, but these errors were encountered: