Commit bc2919f
Update cost calculations (#152)
* Fix cost calculations by removing duplicate multiplier application
The CSV data already includes model multipliers in requestsUsed values.
Fixed excessCost calculation in getModelUsageSummary and getExpectedExcessCost
to not multiply by the multiplier again. Updated tests to reflect correct behavior.
The multiplier is still displayed in the UI for informational purposes.
Agent-Logs-Url: https://github.com/RHSplinter/github-copilot-premium-reqs-usage/sessions/7777403e-d7c3-4c8b-8f8e-ff51db24c81e
Co-authored-by: RHSplinter <60773832+RHSplinter@users.noreply.github.com>
* Remove notes
* Ensure excess costs for default models are always 0
Default models (with multiplier = 0) are free and should never incur
excess costs, even when exceeding quota. Added check to ensure
excessCost is 0 for models with multiplier = 0. Updated test to
reflect this correct behavior.
Agent-Logs-Url: https://github.com/RHSplinter/github-copilot-premium-reqs-usage/sessions/4b7fec75-998c-4d97-980b-8190a0d0b13c
Co-authored-by: RHSplinter <60773832+RHSplinter@users.noreply.github.com>
* Remove notes
* Added GPT-5 mini to default models
---------
Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com>
Co-authored-by: Rob Bos <rajbos@users.noreply.github.com>1 parent de88459 commit bc2919f
2 files changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
255 | 260 | | |
256 | 261 | | |
257 | 262 | | |
| |||
396 | 401 | | |
397 | 402 | | |
398 | 403 | | |
399 | | - | |
| 404 | + | |
400 | 405 | | |
401 | 406 | | |
402 | 407 | | |
| |||
952 | 957 | | |
953 | 958 | | |
954 | 959 | | |
955 | | - | |
| 960 | + | |
956 | 961 | | |
957 | 962 | | |
958 | 963 | | |
959 | 964 | | |
960 | 965 | | |
961 | | - | |
| 966 | + | |
962 | 967 | | |
963 | 968 | | |
964 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
108 | | - | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
0 commit comments