Skip to content

ref(pricing): Use Pi model cost metadata#426

Merged
dcramer merged 2 commits into
mainfrom
ref/use-pi-model-pricing
Jul 11, 2026
Merged

ref(pricing): Use Pi model cost metadata#426
dcramer merged 2 commits into
mainfrom
ref/use-pi-model-pricing

Conversation

@dcramer

@dcramer dcramer commented Jul 11, 2026

Copy link
Copy Markdown
Member

Use the Anthropic model catalog and cost calculator from Pi as the pricing source of truth. This removes duplicated generated price data and the automation required to keep it synchronized.

Pricing Ownership

Anthropic models present in Pi receive estimated component costs. Dated API response IDs resolve only when their undated base model exists in Pi; unsupported model families remain unpriced. Warden retains the separate web-search surcharge and cache-category split needed for telemetry.

Removed Automation

Delete the generated pricing snapshot, updater scripts, package commands, and nightly synchronization workflow.

Use Pi's Anthropic model catalog and cost calculator as the pricing source of truth. Keep only web-search attribution and telemetry component splitting in Warden.

Remove the generated pricing snapshot, updater scripts, package commands, and scheduled synchronization workflow.

Co-Authored-By: GPT-5 Codex <noreply@anthropic.com>
@dcramer dcramer marked this pull request as ready for review July 11, 2026 04:24

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6c5ee0c. Configure here.

Comment thread packages/warden/src/sdk/pricing.ts
Comment thread packages/warden/src/sdk/pricing.ts
Resolve dated Claude API response IDs through their undated Pi catalog model. Keep unsupported model families at zero cost while preserving aggregate and component cost consistency.

Co-Authored-By: GPT-5 Codex <noreply@anthropic.com>
@dcramer dcramer merged commit edc7e6b into main Jul 11, 2026
22 checks passed
@dcramer dcramer deleted the ref/use-pi-model-pricing branch July 11, 2026 13:19
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