Skip to content

refactor: pricing#1159

Closed
harshiv-26 wants to merge 5 commits into
mainfrom
harshivg/gateway-2414-include-priority-tier-in-the-cost-calculation
Closed

refactor: pricing#1159
harshiv-26 wants to merge 5 commits into
mainfrom
harshivg/gateway-2414-include-priority-tier-in-the-cost-calculation

Conversation

@harshiv-26
Copy link
Copy Markdown
Collaborator

@harshiv-26 harshiv-26 commented May 26, 2026

Note

Medium Risk
Large catalog-wide pricing metadata change; wrong or divergent pricing vs costs could affect billing if consumers switch to the new field before validation is complete.

Overview
Introduces a service-tier pricing model on ModelConfig: optional pricing with standard and priority keys, each holding the same region-scoped cost entries as legacy costs. The Cue schema (#Pricing, #ServiceTiers) and generated OpenAPI/TS types are updated; costs stays in place but is marked deprecated for backward compatibility.

Across many provider YAMLs (ai21, anthropic, aws-bedrock, etc.), each touched model gains a pricing.standard block that mirrors existing costs (including multi-region Bedrock entries, cache/batch fields, and tiered long-context pricing where present). Legacy costs is not removed in this diff.

Reviewed by Cursor Bugbot for commit 4fcb96c. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment thread providers/aws-bedrock/us.anthropic.claude-opus-4-20250514-v1:0.yaml Outdated
@harshiv-26 harshiv-26 requested a review from sreeharikmarar May 26, 2026 10:45
Copy link
Copy Markdown

@cursor cursor Bot left a comment

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 1 potential issue.

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 b5a8687. Configure here.

Comment thread .github/scripts/autogen/types.ts Outdated
@harshiv-26 harshiv-26 closed this May 27, 2026
@harshiv-26 harshiv-26 deleted the harshivg/gateway-2414-include-priority-tier-in-the-cost-calculation branch May 27, 2026 09:48
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