anything-llm icon indicating copy to clipboard operation
anything-llm copied to clipboard

[FEAT]: Track Token Costs During Chat and Record Statistics

Open chalitbkb opened this issue 1 year ago • 1 comments

What would you like to see?

Is it possible to calculate the token cost used in each conversation at the bottom of the chat box and keep a record of all statistics, including total expenses, on the dashboard?

Example image

image

chalitbkb avatar May 15 '24 09:05 chalitbkb

I would also like to see this.

I would be happy to manually enter the costs when selecting the specific model, either default or per workspace.

I can see some complications in that some providers offer a flat rate for in and out, some offer a different price for in and out.

But would be a great feature to see implemented

CaffiendDevKit avatar Feb 22 '25 09:02 CaffiendDevKit

We have now had metrics recording for a while now and they can be see when hovering over any LLM response as well as clicking them will show them instantly as reported

timothycarambat avatar Jul 10 '25 20:07 timothycarambat