Repository navigation
fix(pricing): map Azure GPT-5.6 Luna snapshot - #41433
devin-ai-integration[bot] wants to merge 6 commits into
Conversation
🤖 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 SummaryAdds a complete Azure pricing entry for the dated GPT-5.6 Luna snapshot so response-based cost calculation no longer records zero spend. The regression test was moved into the existing mapped Azure cost test file, fully addressing the previous repository-rule finding
Confidence Score: 5/5The PR appears safe to merge because the dated snapshot is mapped consistently and the regression test exercises the affected public cost path No actionable new issues remain. The previous misplaced-test finding is fully fixed by moving the regression coverage into the existing Azure cost calculation test file Important Files Changed
Reviews (2): Last reviewed commit: "test(pricing): drop standalone Luna snap..." | Re-trigger Greptile |
The cost-map-guard runs the default branch's schema generator against the PR's JSON, so a new aliases key cannot land in the same PR that declares it. Use a full entry like the other dated azure gpt-5.x snapshots instead Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
| from litellm.types.utils import Choices, Message, ModelResponse, Usage | ||
|
|
||
|
|
||
| def test_completion_cost_supports_luna_dated_snapshot(monkeypatch): |
There was a problem hiding this comment.
This bug fix creates a new test file, but repository rules require extending the existing mapped Azure cost test before merging
Context Used: CLAUDE.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…st file Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Superseded by rolling registry PR #41112, which already contains the azure/gpt-5.6-luna-2026-07-09 snapshot with the same values |
TLDR
Problem this solves:
gpt-5.6-luna-2026-07-09model idHow it solves it:
azure/gpt-5.6-luna-2026-07-09as a full entry copyingazure/gpt-5.6-lunamainwith conflicts resolvedUser Flow
Before: a developer calling GPT-5.6 Luna through Azure sees every chat completion logged at $0
"model": "azure/gpt-5.6-luna""model": "gpt-5.6-luna-2026-07-09"with real token usageAfter: the same request is priced
"model": "azure/gpt-5.6-luna""model": "gpt-5.6-luna-2026-07-09"with real token usageRelevant issues
Fixes #35762
Supersedes #35783, which targets
litellm_internal_stagingand cannot be rebased in place because its fork branch is not pushable from here. Commits are kept with the original author. Thealiasesapproach from #35783 was swapped for a full entry, matching the other datedazure/gpt-5.xkeys, because the cost-map-guard runs the default branch's schema generator against the PR JSON and rejects a key that the same PR declares. Overlaps with #41423, which strips dated suffixes generically; this PR is the narrower data-only fixAffected release
Linear ticket
Resolves LIT-7863
Pre-Submission checklist
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Screenshots / Proof of Fix
This box has no provider egress, so the proof is the public
completion_cost()path with an Azure-shaped response of 100 prompt and 50 completion tokens, using the local cost mapBefore (9cd7873)
LITELLM_LOCAL_MODEL_COST_MAP=True uv run python repro.pycost=0.00000000After (643620a)
LITELLM_LOCAL_MODEL_COST_MAP=True uv run python repro.pydated_key_present=Trueandcost=0.00008000Type
🐛 Bug Fix
Caveats (if any)
Medium
azure/gpt-5.6-lunamust be mirroredFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/cc74f675691a4d5e909ecdf06aff2c10
Open in Devin Desktop: https://app.devin.ai/desktop/session/cc74f675691a4d5e909ecdf06aff2c10?variant=devin