Skip to content

Update cost calculations#152

Merged
Rob Bos (rajbos) merged 7 commits intoxebia:mainfrom
RHSplinter:update-cost-calculations
Apr 10, 2026
Merged

Update cost calculations#152
Rob Bos (rajbos) merged 7 commits intoxebia:mainfrom
RHSplinter:update-cost-calculations

Conversation

@RHSplinter
Copy link
Copy Markdown
Collaborator

@RHSplinter Raymond Splinter (RHSplinter) commented Apr 9, 2026

  • Remove model multiplier from cost calculations as is this already taken into account with the number of requests
  • Add GPT-5 mini to default models

Claude AI and others added 6 commits April 9, 2026 11:47
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
Copy link
Copy Markdown
Collaborator

@rajbos Rob Bos (rajbos) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rajbos Rob Bos (rajbos) merged commit bc2919f into xebia:main Apr 10, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants