Repository navigation
fix(pricing): map Azure GPT-5.6 Luna snapshot - #35783
Linxiushen wants to merge 3 commits into
Conversation
Greptile SummaryThis PR maps Azure’s dated GPT-5.6 Luna snapshot to the canonical Luna pricing entry so automatic completion-cost calculation can resolve it.
Confidence Score: 5/5The PR appears safe to merge; the dated snapshot resolves correctly through both pricing-map sources and the regression test exercises the reported failure path. Both pricing artifacts contain the same fully qualified alias, the shared loader expands it to canonical Luna pricing, and the test validates the exact Azure response metadata and token-cost calculation while forcing local-only loading.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds the dated Azure GPT-5.6 Luna alias to the canonical remote pricing entry; alias expansion resolves it to the existing pricing data. |
| litellm/model_prices_and_context_window_backup.json | Mirrors the alias in the bundled fallback map, preserving offline and remote-map fallback behavior. |
| tests/test_litellm/llms/azure/test_azure_gpt56_cost_calculation.py | Adds a local-only end-to-end regression test that verifies alias availability and the expected completion cost without leaking global state. |
Reviews (1): Last reviewed commit: "fix(pricing): map Azure GPT-5.6 Luna sna..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
c9f2b16 to
758223e
Compare
# Conflicts: # litellm/model_prices_and_context_window_backup.json # model_prices_and_context_window.json
758223e to
5c322d1
Compare
|
Base switched to main. The fork branch is not pushable from here, so the rebased commits with conflicts resolved are in #41433 |
|
Closing as superseded by #41423, merged into main, which strips any trailing dated snapshot suffix instead of aliasing one model |
TLDR
Problem this solves:
How it solves it:
Relevant issues
Fixes #35762
Linear ticket
Pre-Submission checklist
Screenshots / Proof of Fix
No credentials or mocks are required; this exercises the public
completion_cost()path from the issue reproduction.Before (
956d5177d):After (rebased head
5c322d1cde):Type
Bug Fix
Test
Changes
azure/gpt-5.6-luna-2026-07-09as a canonical pricing aliasaliasesas a unique string array in the generated and compatibility schemasVerification
Rebased onto
bbc6e3feeaand verified at head5c322d1cde:Focused Ruff checks passed for the Azure and schema tests. The 20 focused tests cover the completion-cost regression, committed schema generation and validation, malformed schema cases, and the compatibility price-map validator.
Final Attestation
AI assistance was used for implementation and test drafting; the diff and verification results were reviewed before submission