Skip to content

[Bug]: Rounding on token usage causes us to display 0 in situations where there is 3+ decimals in the float #296

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

Open
alex-mcgovern opened this issue Feb 11, 2025 · 1 comment

Comments

@alex-mcgovern
Copy link
Collaborator

Feedback from @danbarr

Should we remove the cost indicator from the token usage tooltip until we actually have the cost features in place? Seeing "USD 0.00" the natural next question is "how do I set costs?"
this was with OpenAI directly. Was thinking we maybe just needed more precision than two decimals, but at 0.00003/token, 1.6k tokens should round to $0.05?
Might be useful to also extend the precision out one more decimal, for smaller requests?

Image

@davolokh
Copy link
Collaborator

i think we have enough space even for 4 decimal points?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants