fix(pricing): add undated azure gpt-audio-mini and gpt-realtime-mini aliases - #33618
Conversation
…altime-mini Azure deployments are commonly created against the undated model name, and the cost-tracking docs say to set base_model to azure/<model> — but only the dated -2025-10-06 entries existed for these two models (the openai provider has undated aliases for both). base_model: azure/gpt-audio-mini therefore resolved to nothing and, depending on the fallback path, text tokens billed at $0 while audio tokens billed fine. Mirror the -2025-10-06 entries as undated aliases, exactly like the undated openai entries mirror their newest dated variant. Fixes #33170
…ck_files_match.py 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 undated
Confidence Score: 5/5Safe to merge — the change is purely additive data in JSON cost maps with no logic changes. Both new entries are verified field-for-field copies of their existing dated counterparts, the backup file is kept in sync by the CI check, and the new regression test directly exercises the reported bug symptom using only local data. No files require special attention.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds two new undated alias entries (azure/gpt-audio-mini and azure/gpt-realtime-mini) that are exact field-for-field copies of their dated -2025-10-06 counterparts; no values differ. |
| litellm/model_prices_and_context_window_backup.json | Synced to match the primary cost map; includes the two new Azure aliases plus several other model entries (gemini-3-pro-image, gemini-3.1-flash-image, zai/glm-*, darkbloom/*) that were already in the main file but missing from the backup. |
| tests/test_litellm/test_azure_audio_price_aliases.py | New regression test that loads the local cost map via LITELLM_LOCAL_MODEL_COST_MAP=True, then asserts all four audio cost fields on each undated alias are non-zero and match their dated counterpart. |
Reviews (1): Last reviewed commit: "chore: sync model_prices_and_context_win..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Tested live against a local proxy on Both undated aliases now resolve full pricing and token limits; before this change the undated names were absent from the map and returned 0/None Full walkthrough and test report: https://app.devin.ai/sessions/2a3db9e7f3234370988a77b458d0a202 |

Relevant issues
Fixes #33170
Internal replacement branch for OSS PR #33291 by Mihidum Hettiyahandi (@mihidumh); original authorship is preserved on the commits
Linear ticket
Pre-Submission checklist
Screenshots / Proof of Fix
Captured live against a proxy on
localhost:4000at commitf3464b15d5, started withLITELLM_LOCAL_MODEL_COST_MAP=Trueso the resolution comes from this branch's bundled cost mapConfig declares the two undated deployments with dummy Azure creds (no request is needed, the lookup is metadata-only):
/v1/model/infonow resolves pricing and limits for the undated aliases:Before the fix these undated names were absent from the cost map, so the same lookup returned zeroed/None pricing and no token limits
Type
🐛 Bug Fix
Changes
Adds undated
azure/gpt-audio-miniandazure/gpt-realtime-minientries tomodel_prices_and_context_window.json, mirroring the existing dated-2025-10-06entries (costs, token limits, supported modalities, endpoint metadata).litellm/model_prices_and_context_window_backup.jsonis synced viaci_cd/check_files_match.pyso the two files matchFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/2a3db9e7f3234370988a77b458d0a202