Skip to content

chore(azure): lower discount from 30% to 20% - #2125

Merged
steebchen merged 1 commit into
mainfrom
azure-discount-20
Apr 30, 2026
Merged

steebchen merged 1 commit into
mainfrom
azure-discount-20

Conversation

@steebchen

@steebchen steebchen commented Apr 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Updates all Azure provider mappings in packages/models/src/models/openai.ts from discount: 0.3 to discount: 0.2
  • Affects: gpt-5.1, gpt-5.2, gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, gpt-5.5, gpt-image-2

Test plan

  • Verify pricing reflects 20% off for Azure-routed requests on the affected models

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated discount rates for OpenAI models.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 30, 2026 19:46
@coderabbitai

coderabbitai Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: d980995a-c68a-4b09-ab6c-6ae2127dc015

📥 Commits

Reviewing files that changed from the base of the PR and between 445a417 and 5f00073.

📒 Files selected for processing (1)
  • packages/models/src/models/openai.ts

Walkthrough

Updates discount values from 0.3 to 0.2 across multiple model and provider entries in the OpenAI models pricing configuration. No changes to exported interfaces, type signatures, or pricing fields other than the discount values.

Changes

Cohort / File(s) Summary
OpenAI Model Pricing
packages/models/src/models/openai.ts
Discount values reduced from 0.3 to 0.2 across multiple model/provider entries in openaiModels, affecting entries with both standard and image output pricing.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the main change: lowering the Azure discount from 30% to 20% across multiple OpenAI models.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch azure-discount-20

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

Pull request overview

Adjusts Azure pricing modifiers in the OpenAI model catalog so Azure-routed requests for specific OpenAI models now use a 20% discount (down from 30%), aligning cost calculation/routing behavior with updated pricing assumptions.

Changes:

  • Updated Azure provider discount from 0.3 to 0.2 for: gpt-5.1, gpt-5.2, gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, gpt-5.5, gpt-image-2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@steebchen
steebchen enabled auto-merge April 30, 2026 19:54
@steebchen
steebchen added this pull request to the merge queue Apr 30, 2026
Merged via the queue into main with commit 87e5596 Apr 30, 2026
21 checks passed
@steebchen
steebchen deleted the azure-discount-20 branch April 30, 2026 20:04
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