Repository navigation
feat(models): add Azure GPT-5.6 (sol/terra/luna) pricing and metadata - #32678
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Greptile SummaryThis PR adds twelve Azure GPT-5.6 model entries (
Confidence Score: 4/5Safe to merge — changes are isolated to the model cost map JSON files and new tests; no production logic is touched. The pricing math across all 12 entries has been verified against the documented derivation rules (2× priority, 1.5× above-272k output, 10% regional uplift, 2.75× regional priority relative to global base). The regional test omits capability-field assertions that the global test includes, so a future copy-paste error on a regional entry could go undetected without running the cost-calc parametrize path. tests/test_litellm/test_gpt_5_6_model_metadata.py — regional test coverage is thinner than the global test
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds 12 Azure GPT-5.6 model entries (4 global tiers + 8 regional us/eu variants). Pricing math is correct and consistent with gpt-5.5 regional pattern; regional models intentionally omit the above_272k_priority compound fields. |
| litellm/model_prices_and_context_window_backup.json | Mirror of model_prices_and_context_window.json additions; backup sync is verified by test_gpt_5_6_backup_matches_main. |
| tests/test_litellm/test_gpt_5_6_model_metadata.py | Adds Azure global and regional metadata tests plus extends the backup-sync check. Regional test doesn't assert supports_reasoning, max_input_tokens, or supported_endpoints, giving it less coverage than its global counterpart. |
| tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py | Adds parametrized cost-calc test covering 7 Azure GPT-5.6 model/region combinations; pattern matches existing tests in the file, no real network calls. |
Comments Outside Diff (1)
-
tests/test_litellm/test_gpt_5_6_model_metadata.py, line 120-140 (link)Regional test missing capability assertions
test_azure_gpt_5_6_regional_model_infoonly validates pricing fields andlitellm_provider. The global counterpart additionally assertssupports_reasoning,max_input_tokens,max_output_tokens, andsupported_endpoints. If a regional entry were accidentally missingsupports_reasoning: true(or had the wrong token limits), this test wouldn't catch it, even though the regional JSON entries do carry those fields.
Reviews (1): Last reviewed commit: "feat(models): add Azure GPT-5.6 (sol/ter..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Relevant issues
Follow-up to the openai GPT-5.6 rollout (#32659), adding the Azure deployments of the same family
Linear ticket
Pre-Submission checklist
Screenshots / Proof of Fix
GPT-5.6 is mid-rollout on OpenAI and not yet a callable Azure deployment, so a real completion 404s upstream just like on the openai PR. The honest proof is a live proxy on :4000 serving the new Azure pricing and metadata straight from the model cost map (no mocks), captured at commit
060e66cThe regional row confirms the 10% uplift (luna base 1e-06 -> us 1.1e-06) and the 2.75x regional priority multiplier flow through the gateway's cost resolution
Type
🆕 New Feature
Changes
Adds the Azure GPT-5.6 family to
model_prices_and_context_window.jsonand the bundledlitellm/model_prices_and_context_window_backup.json, mirroring the existingazure/gpt-5.5entries in both structure and pricing derivationTwelve entries land in total: global
azure/gpt-5.6,azure/gpt-5.6-sol,azure/gpt-5.6-terra,azure/gpt-5.6-luna, plusazure/us/*andazure/eu/*regional variants for each. The bareazure/gpt-5.6alias points at the sol tier, matching how the openai side aliasesgpt-5.6to solPricing follows the same relationships the
azure/gpt-5.5rows already encode, so nothing new is invented structurally. Global deployments match the openai list price (sol $5/$30, terra $2.50/$15, luna $1/$6 per MTok in/out); priority is 2x standard, above-272k is 2x input and 1.5x output, and above-272k-priority stacks both. Regional us/eu rows carry the standard 10% uplift on the base rate with the 2.75x regional priority multiplier that gpt-5.5 usesA note on provenance, same as the openai PR: Azure has not published a 5.6 price sheet mid-rollout, so these numbers are derived from the established gpt-5.5 Azure pattern rather than a live Azure pricing page. If Azure's posted numbers differ once the rollout completes, the values here should be reconciled against them
Tests extend
tests/test_litellm/test_gpt_5_6_model_metadata.py(global and regional Azure metadata, routing, backup sync) andtests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py(a parametrizedgeneric_cost_per_tokencase covering global and regional Azure tiers end to end)Link to Devin session: https://app.devin.ai/sessions/93a883e6bc334fd4892564f4a2b14797
Requested by: @mateo-berri