Skip to content

fix(cost-map): refresh Azure and Together retirement dates and add GMI Gemini 4 Hydrogen - #52763

Merged
devin-ai-integration[bot] merged 4 commits into
mainfrom
litellm-providers/price-sync-azure
Nov 19, 2026
Merged

devin-ai-integration[bot] merged 4 commits into
mainfrom
litellm-providers/price-sync-azure

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Azure moved retirement dates for codex-mini, gpt-4o-transcribe, gpt-image-1, gpt-realtime-2.1 and whisper
  • Several Azure snapshot and regional rows had no retirement date at all
  • Ten retired Together serverless models carried no deprecation_date
  • GMI Gemini 4 Hydrogen was missing from the cost map

How it solves it:

  • Sets deprecation_date and deprecation_source from each provider's published schedule
  • Adds the GMI row with its catalog prices and input limit
  • Same edit in the root map and the backup, plus focused tests

User Flow

Before: a proxy admin planning a migration off azure/gpt-realtime-2.1 reads a retirement date five weeks too early

  1. Their proxy has a deployment on azure/gpt-realtime-2.1
  2. They send GET https://litellm-domain/model/deprecations with the master key
  3. The response says 2027-06-25, while Azure's schedule says 2027-07-31

After: the same call returns the date Azure publishes

  1. Their proxy has the same deployment
  2. They send GET https://litellm-domain/model/deprecations with the master key
  3. The response says 2027-07-31

Rows 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-mini keeps its existing source https://learn.microsoft.com/en-us/azure/foundry/concepts/model-lifecycle-retirement, which states the same date.

catalog keys field old -> new
azure/codex-mini, azure/eu/codex-mini, azure/us/codex-mini, azure_ai/codex-mini deprecation_date 2026-11-15 -> 2026-11-17
azure/gpt-4o-transcribe deprecation_date 2026-10-15 -> 2027-02-26
azure/gpt-image-1 and its nine low/medium/high size rows deprecation_date 2026-10-23 -> 2026-10-28
azure/gpt-realtime-2.1, azure/gpt-realtime-2.1-mini, their 2026-07-07 snapshots and azure/us/ rows deprecation_date 2027-06-25 -> 2027-07-31
azure/gpt-realtime-whisper deprecation_date 2027-05-06 -> 2027-11-09, source added
azure/gpt-realtime-whisper-2026-05-06, azure/gpt-realtime-translate-2026-05-06 deprecation_date absent -> 2027-11-09, source added
azure/gpt-6.1-terra, azure/us/, azure/eu/, azure/apac/gpt-6.1-terra deprecation_date absent -> 2027-10-26, source added
azure/gpt-live-1, azure/gpt-live-transcribe, azure/gpt-transcribe, azure/gpt-realtime-translate deprecation_source absent -> schedule URL (dates already matched)

Together, absorbed from #51815 and re-verified. deprecation_source is set to the page that states each date.

catalog key deprecation_date source
together_ai/zai-org/GLM-4.6 2026-07-29 https://docs.together.ai/docs/deprecations
together_ai/deepseek-ai/DeepSeek-R1-0528 2026-07-29 https://docs.together.ai/docs/deprecations
together_ai/meta-llama/Llama-3.2-1B-Instruct 2026-07-29 https://docs.together.ai/docs/deprecations
together_ai/meta-llama/Llama-3.2-3B-Instruct 2026-07-29 https://docs.together.ai/docs/deprecations
together_ai/Qwen/Qwen2-1.5B-Instruct 2026-07-29 https://docs.together.ai/docs/deprecations
together_ai/Qwen/Qwen2.5-14B-Instruct 2026-07-29 https://docs.together.ai/docs/deprecations
together_ai/Qwen/Qwen2.5-72B-Instruct 2026-07-29 https://docs.together.ai/docs/deprecations
together_ai/BAAI/bge-base-en-v1.5 2026-02-25 https://docs.together.ai/docs/changelog
together_ai/mistralai/Ministral-3-14B-Instruct-2512 2026-02-25 https://docs.together.ai/docs/changelog
together_ai/mistralai/Mistral-7B-Instruct-v0.3 2026-01-29 https://docs.together.ai/docs/changelog

GMI, absorbed from #52391, source https://ie-api.gmicloud.ai/v1/artifact/get_public_artifacts. New row gmi/google/gemini-4-hydrogen with mode chat, max_input_tokens 1048576, 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.json are 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/deprecations reports 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

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. 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 more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Screenshots / 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.

  1. 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.py gave 284 passed, 5 warnings
  2. At 24dbe7a, after the test typing commit, LITELLM_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.py gave 171 passed, 12 warnings
  3. python3 ci_cd/check_files_match.py printed Passed! Files model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json match.
  4. The cost map guard printed cost map guard passed, and JSON validation passed for both maps

Type

🐛 Bug Fix
✅ Test

Caveats (if any)

Low

  • Cursor Bugbot said the schedule shows older Azure dates. The raw page on 2026-11-19 shows the new ones
  • gpt-image-1 and codex-mini dates are now in the past, so those rows read as retired

@CLAassistant

CLAassistant commented Nov 19, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ kerry-berri
❌ devin-ai-integration[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@veria-ai

veria-ai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

No security issues were found in this pull request.

Reviews

@kerry-berri

Copy link
Copy Markdown
Contributor

bugbot run

@kerry-berri

Copy link
Copy Markdown
Contributor

@greptileai

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Devin is currently unreachable - the session may have died.

View session

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with no outstanding findings.

Summary

Updates Azure and Together retirement dates, adds GMI Gemini 4 Hydrogen pricing, and keeps both cost maps aligned.

  • Azure retirement reports now use the dates in its published schedule.
  • Together model retirement dates now match its published notices.
  • Gemini 4 Hydrogen now has a GMI chat pricing entry.

No new issues found in the changes since the previous review. The earlier test-type finding is fixed.

Reviews (3) · Last reviewed commit: "test(cost-map): type cost map rows in re..." · Reviewed by Greptile

Comment thread model_prices_and_context_window.json Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e2362c5. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

devin-ai-integration Bot and others added 2 commits November 19, 2026 13:07
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>
@devin-ai-integration devin-ai-integration Bot changed the title fix(cost-map): move six azure retirement dates to the dates the retirement schedule now states fix(cost-map): refresh Azure and Together retirement dates and add GMI Gemini 4 Hydrogen Nov 19, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot merged commit 7557628 into main Nov 19, 2026
49 of 50 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the litellm-providers/price-sync-azure branch November 19, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants