Skip to content

fix(web): recalculate cache token price estimates - #812

Merged
LIghtJUNction merged 1 commit into
mainfrom
fix/model-cache-calculator-20261012
Oct 11, 2026
Merged

LIghtJUNction merged 1 commit into
mainfrom
fix/model-cache-calculator-20261012

Conversation

@LIghtJUNction

Copy link
Copy Markdown
Member

The model price editor showed separate text, image and audio cache inputs, but a pricing expression using the generic cr variable ignored those counts. The estimate now uses the same effective cache total for both cr and tier selection, and updates as the inputs change.

Validated locally at 2c53f147fa755fe715d033c15a67a8a782b3ce69: the interaction regression failed before the fix; 41 tests across seven pricing files, frontend type checking, and changed-file lint/format checks pass. This changes the frontend estimate only. The final combined release build and production verification are pending.

Copilot AI balanced review requested due to automatic review settings October 11, 2026 20:45
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants