Skip to content

[BUG] Incorrect Token Cost Calculations #125

@ibehnam

Description

@ibehnam

I noticed the following when adding new models to Koala:

  1. It's not easy to enter decimal numbers! Open-Router shows the costs per 1 Million tokens, while Koala asks for cost per 1 K tokens. So a $3/Million costs (e.g., for the Cohere Command R+ model) should be entered as $0.003. But . is not accepted in the text field. The workaround is to type 3, then manually go to the beginning and enter ., and repeat that to enter 0s.
image
  1. Even after entering the decimal numbers like this, the total cost is not calculated correctly (I checked my usage on Open-Router after 24 hours and saw completely different numbers).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglow priorityIf you want it changed, submit a PR

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions