-
Notifications
You must be signed in to change notification settings - Fork 114
fix: remove unstable stability flag for Azure models #1920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -773,10 +773,10 @@ export const openaiModels = [ | |||||||||||||||||
| { | ||||||||||||||||||
| test: "skip", | ||||||||||||||||||
| providerId: "azure", | ||||||||||||||||||
| stability: "unstable" as const, | ||||||||||||||||||
| modelName: "gpt-5", | ||||||||||||||||||
| inputPrice: 1.25 / 1e6, | ||||||||||||||||||
| outputPrice: 10.0 / 1e6, | ||||||||||||||||||
| discount: 0.3, | ||||||||||||||||||
| cachedInputPrice: 0.125 / 1e6, | ||||||||||||||||||
|
Comment on lines
+779
to
780
|
||||||||||||||||||
| discount: 0.3, | |
| cachedInputPrice: 0.125 / 1e6, | |
| cachedInputPrice: 0.125 / 1e6, | |
| discount: 0.3, |
Copilot
AI
Mar 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hunk introduces discount: 0.3 for the Azure mappings while also removing stability. That changes effective pricing used by provider/model selection (discount affects cheapest-provider logic), which is a behavior change beyond "remove unstable stability flag". If Azure pricing should remain identical to OpenAI, drop the discount; otherwise please document/justify the Azure discount (and consider applying it consistently across all Azure mappings for this family).
Copilot
AI
Mar 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this Azure mapping, discount is inserted before inputPrice (unlike other entries where discount is grouped with the pricing fields, typically after cachedInputPrice). Please keep a consistent field ordering for pricing attributes to avoid overlooking discount when updating token prices.
| discount: 0.3, | |
| inputPrice: 0.05 / 1e6, | |
| outputPrice: 0.4 / 1e6, | |
| cachedInputPrice: 0.005 / 1e6, | |
| inputPrice: 0.05 / 1e6, | |
| outputPrice: 0.4 / 1e6, | |
| cachedInputPrice: 0.005 / 1e6, | |
| discount: 0.3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR title indicates removing the unstable stability flag for Azure mappings, but this change only removes it for the GPT-5 / GPT-5-mini / GPT-5-nano Azure entries. There are still multiple Azure mappings in this file that set
stability: "unstable"(e.g. around openai.ts:1138, 1249, 1297, 1566, 1615, 1664). If the intent is to stop treating Azure as unstable, please remove/update those remaining flags as well (or adjust the PR title/scope to match).