-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Incorrect Token Cost Calculations #125
Comments
Do you know if the model you're using uses OpenAI's tokenizer or something else? The token count is just using OpenAI's |
Ahh, that explains it. I'm using Cohere's Command R+, which has a different tokenizer. It's probably easier to get the token usage info directly from the response:
I don't know TS, otherwise I'd open a PR myself :) |
I suppose that sum cost could be automatically determined behind the scenes based on the response, but the estimate per chat would never be right, unless we had hardcoded logic for different model names. This would be really annoying to implement since we'd somehow need to have different behavior per model, even though they can be custom defined. The scope of this fix just massively increased, so idk if I'll ever implement it myself. |
I noticed the following when adding new models to Koala:
.
is not accepted in the text field. The workaround is to type3
, then manually go to the beginning and enter.
, and repeat that to enter0
s.The text was updated successfully, but these errors were encountered: