Repository navigation
fix(cost-map): refresh Azure and Together retirement dates and add GMI Gemini 4 Hydrogen - #52763
Conversation
…ement schedule now states
|
|
|
bugbot run |
|
Devin is currently unreachable - the session may have died. |
[Medium impact] The PR appears safe to merge, with no outstanding findings.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e2362c5. Configure here.
| "azure/gpt-4o-transcribe": { | ||
| "successor_model": "azure/gpt-live-transcribe", | ||
| "deprecation_date": "2026-10-15", | ||
| "deprecation_date": "2027-02-26", |
There was a problem hiding this comment.
Azure dates mismatch cited retirement schedule
High Severity
The new deprecation_date values cite the Azure retirement schedule, but that page still lists the previous dates. azure/gpt-4o-transcribe moves from the schedule's already-past 2026-10-15 to OpenAI's 2027-02-26, so /model/deprecations would treat a retired Azure model as live for three more months. azure/gpt-realtime-2.1 and azure/gpt-realtime-whisper similarly pick later Foundry Map dates while deprecation_source still points at the schedule.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit e2362c5. Configure here.
There was a problem hiding this comment.
Raw schedule HTML today lists gpt-4o-transcribe 2025-03-20 retiring 2027-02-26, gpt-realtime-2.1 and mini 2027-07-31, gpt-realtime-whisper 2027-11-09. Values match.
Co-authored-by: hisamoto <176846725+hisamotodev@users.noreply.github.com> Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> 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>


Handwritten 1-3 sentence description
Azure moved several retirement dates on its model retirement schedule, so this updates the cost map to match and fills in dates and sources that were missing. It also records retirement dates for ten Together serverless models and adds the new GMI Gemini 4 Hydrogen row with its catalog prices.
Details
Link to Devin session: https://app.devin.ai/sessions/95bb1a359e204aeebc99cb062b090a40
Open in Devin Desktop: https://app.devin.ai/desktop/session/95bb1a359e204aeebc99cb062b090a40?variant=devin
Requested by: @kerry-berri
TLDR
Problem this solves:
deprecation_dateHow it solves it:
deprecation_dateanddeprecation_sourcefrom each provider's published scheduleUser Flow
Before: a proxy admin planning a migration off
azure/gpt-realtime-2.1reads a retirement date five weeks too earlyazure/gpt-realtime-2.12027-06-25, while Azure's schedule says2027-07-31After: the same call returns the date Azure publishes
2027-07-31Rows changed
All values were read from the raw HTML of each page on 2026-11-19, with r.jina.ai as a cross-check. Prices, limits and flags of existing rows are untouched.
Azure, source https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule (Azure OpenAI table, Retirement date column).
azure_ai/codex-minikeeps its existing source https://learn.microsoft.com/en-us/azure/foundry/concepts/model-lifecycle-retirement, which states the same date.Together, absorbed from #51815 and re-verified.
deprecation_sourceis set to the page that states each date.GMI, absorbed from #52391, source https://ie-api.gmicloud.ai/v1/artifact/get_public_artifacts. New row
gmi/google/gemini-4-hydrogenwith mode chat,max_input_tokens1048576, input 1.5e-06, output 7.5e-06, cache read 7.5e-08 and cache write 1.875e-06 per token. The cache-write price comes from the same catalog and was not in #52391.Absorbed, dropped and left alone
#52391 is fully absorbed and closed as superseded. #51815 is partly absorbed. Its dates for Qwen2.5-7B-Instruct-Turbo, Kimi-K2.5-fp4, trinity-mini, Llama-3.1-405B-Instruct and Meta-Llama-3.1-8B rest on a live probe rather than a published Together date, so they were dropped and that PR stays open. #52394 targets the LTS line and its rows already match main, so it is left alone. PRs that change routing or request translation and only touch the JSON incidentally (#32291, #32455, #48098, #48582, #48732, #49367, and the provider feature PRs such as #52755, #52520, #52519, #52407, #52354, #39907) stay separate. Neither absorbed PR declares a closing issue, and no open issue is resolved by these rows.
Together's pricing page still lists Qwen3.7-Max at $2.50 input, $0.50 cached and $7.50 output per 1M, and Qwen3.8-Flash at $0.15 and $0.47, while the 2026-09-22 changelog lists lower prices. The pricing page wins, so both rows are unchanged. The two Fireworks MiniMax M3 vision flags pinned in
ci_cd/cost_map_pins.jsonare kept even though the serverless listing says text only.Design decisions
Together's pricing page wins over its changelog where they disagree, so the Qwen3.7-Max and Qwen3.8-Flash prices stay as they are. Together dates that rest only on a live probe were dropped instead of guessed. The GMI row takes the cache-write price from the same GMI catalog entry. gpt-image-1 and codex-mini dates are now in the past, so
/model/deprecationsreports them as retired. No user-facing behavior changes beyond the corrected dates.Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<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 moreScreenshots / Proof of Fix
E2E exception at 24dbe7a. The diff is data only in the cost map and its backup plus tests, so the focused checks below cover it and no proxy or provider calls were made.
LITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync pytest -q tests/unit/test_model_prices_and_context_window.py tests/unit/test_model_cost_aliases.py tests/unit/test_together_ai_model_metadata.pygave284 passed, 5 warningsLITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync pytest -q tests/unit/test_model_prices_and_context_window.py tests/unit/test_together_ai_model_metadata.pygave171 passed, 12 warningspython3 ci_cd/check_files_match.pyprintedPassed! Files model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json match.cost map guard passed, and JSON validation passed for both mapsType
🐛 Bug Fix
✅ Test
Caveats (if any)
Low