Open tarasglek opened 1 year ago
Hi @tarasglek, I'm interested in your issue and I want to give it a try. However, can you help me clarify where do you want to implement this feature ?
Oh this would be so cool. Chatcraft has a feature:
to track token usage.
It's shown like:
Would be cool to show cost instead of tokens when on OpenRouter by polling /api/v1/auth/key
endpoint before and after chat completion.
openrouter has an api endpoint to see how much credit is left. this might actually be more useful than toktoken for counting costs.
/api/v1/auth/key
with the token