fix(pricing): map Azure GPT-5.6 Luna snapshot - #35783
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! |
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 (
891c167a4):Type
Bug Fix
Test
Changes
azure/gpt-5.6-luna-2026-07-09as a canonical pricing alias.Verification
make pre-commitcould not finish its bootstrap on Windows because the local machine lacks MSVClink.exe; the staged-file lint script itself passed when run directly against the provisioned environment.Final Attestation