Skip to content

feat(ai-review): estimate costs across the model pricing catalog - #17

Merged
absorbb merged 1 commit into
mainfrom
feat/ai-review-model-pricing
Oct 16, 2026
Merged

absorbb merged 1 commit into
mainfrom
feat/ai-review-model-pricing

Conversation

@absorbb

@absorbb absorbb commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

AI review cost estimates were populated only for Terra, leaving the new Astra default without a cost. Add a 47-model dictionary from the official OpenAI standard text pricing tables, verified on 2026-10-16, covering the current review models and published legacy/specialized text models.

The estimator prices each request using cumulative usage deltas, ignores repeated token-count events, separates uncached input/cache reads/cache writes/output, and applies the published long-context premium above 272,000 input tokens per request. Reasoning output is already included in output tokens. Unknown exact model identifiers, unpriced usage categories, or inconsistent counters produce an unavailable reason rather than an invented cost.

The workflow summary and analysis artifact include the pricing source, verification date, standard-rate basis, cache-write usage, and any unavailable reason. Estimates exclude tools, regional/service-tier uplifts, and the optional native benchmark. Pricing entries do not imply Codex model compatibility.

Source: https://developers.openai.com/api/docs/pricing

Validation: all 42 tests pass, including model-specific rates, cache writes, context boundaries, duplicate events, and unavailable cases; actionlint and git diff --check pass. A token-only replay of 256 real Codex usage events also completed with an estimate. Fresh local medium-tier review checked all 47 rates and found no issues.

@jitsu-code-review jitsu-code-review Bot 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.

Review of e67a0c6f7d2cc226e7108afc55c4152806cf2a58

Reviewed the full diff, workflow integration, and official pricing. No high-confidence defects found. All 42 tests pass.

@absorbb
absorbb merged commit 0b4144f into main Oct 16, 2026
2 checks passed
@absorbb
absorbb deleted the feat/ai-review-model-pricing branch October 16, 2026 12:09
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.

1 participant