Update cost calculations#152
Merged
Rob Bos (rajbos) merged 7 commits intoxebia:mainfrom Apr 10, 2026
Merged
Conversation
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>
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>
Fix PRU cost calculations by removing duplicate multiplier application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GPT-5 minito default models