Skip to content

chore(cost-map): add Mistral retirement dates for nine models - #54976

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
litellm_registry_audit_20261128
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
litellm_registry_audit_20261128

Conversation

@devin-ai-integration

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

Copy link
Copy Markdown
Contributor

Handwritten 1-3 sentence description

Adds Mistral's published retirement dates, successors and source URL to nine Mistral model IDs so the deprecations endpoint from #26900 reports them. No prices, token limits or capability flags change.

Caveats

Low

  • These dates cover the listed Mistral API IDs only.
  • Separately routed Magistral aliases keep their existing replacement mappings.
Details

Link to Devin session: https://app.devin.ai/sessions/a53072c78dba4e718c07b44e97cf3979
Open in Devin Desktop: https://app.devin.ai/desktop/session/a53072c78dba4e718c07b44e97cf3979?variant=devin
Requested by: scheduled registry audit automation

TLDR

Problem this solves:

  • Nine Mistral model IDs lacked published retirement dates.

How it solves it:

  • Record their retirement dates, replacements, and source.

User Flow

Before: an administrator gets no retirement notice for the configured Mistral Medium alias.

  1. Configure a deployment using mistral/mistral-medium-latest without a date override.
  2. Send GET http://localhost:4000/model/deprecations with the master key and find no entry for that deployment.

After: the administrator can see when to move off the alias and what to use next.

  1. Configure the same deployment without a date override.
  2. Send the same GET and see April 30, 2027 and mistral/mistral-large-4 for the deployment.

Provider sources

Each row below comes from the retirement table in Mistral's model catalog. IDs are shown without the LiteLLM mistral/ prefix.

Registry ID Retirement Replacement ID
devstral-small-latest 2026-03-31 mistral-medium-3-5
pixtral-large-latest 2026-05-31 mistral-medium-3-5
devstral-latest, devstral-medium-latest 2026-07-31 mistral-medium-3-5
open-mistral-nemo 2026-07-31 ministral-8b-2512
glm-5-2 2026-10-31 zai-glm-5-3
mistral-medium-latest 2027-04-30 mistral-large-4
voxtral-mini-latest 2027-04-30 voxtral-mini-transcribe-3-0
voxtral-mini-realtime-latest 2027-04-30 voxtral-mini-transcribe-realtime-3-0

The raw source snapshots were also checked against registry entries for OpenAI, Anthropic, Gemini, Vertex, Bedrock, Azure, Fireworks, Groq, xAI, Cohere, and DeepSeek. No billing, limit, or capability edits are included.

Values left alone

  • Fireworks lists MiniMax M3 image input as unsupported. Both LiteLLM rows keep their live-verified vision pin.
  • Fireworks pricing still lists the Nemotron 3 Ultra preview, but its changelog records the serverless retirement. The retired row is unchanged.
  • AWS lists Marengo Embed 3.0's end of life for Seoul only. That date does not belong on the unqualified, US, or EU keys.
  • Microsoft's retirement schedule gives older Azure snapshots earlier retirement dates than the defaults used by the generic IDs. The snapshot dates were checked separately. The Azure Whisper registry date already agrees with the current schedule.
  • DeepSeek's pricing page publishes peak and off-peak rates. The existing fields match the peak rates. This PR does not represent the time-based discount as an all-day price.
  • Together's October 6 changelog restored the Qwen rates that the September 22 entry lowered. The pricing page shows $2.50 input, $0.50 cached, and $7.50 output per million tokens for Qwen3.7-Max. Qwen3.8-Flash was absent from the fetched pricing HTML, and its registry $0.15 input and $0.47 output match the later changelog. Neither row changed.
  • Anthropic's earliest possible dates and Vertex's or later dates were not treated as announced retirement dates.

No other registry PR was absorbed. #54263 and #39907 add providers and were left alone. No open issue found in the model searches describes these retirement gaps.

Pre-Submission checklist

  • A regression test compares four aliases with their documented model versions.
  • Focused registry and deprecation tests pass locally.
  • Required CI checks and automated reviews are complete.

Screenshots / Proof of Fix

E2E exception at cd1f8f4f9c7ee02c01aefbaeb370fdb371e181ae. This is a registry-only correction. The existing deployment lookup reads these three fields from the model cost map and does not call the model provider. No request translation, routing code, or billing changed.

At the base, all four tested aliases lacked deprecation_date while their versioned rows had a date. The nine updated rows now each carry a source and a replacement that resolves to an existing Mistral model row.

$ 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_cost_map_guard.py tests/unit/proxy/common_utils/test_model_deprecation.py tests/unit/proxy/test_model_deprecations_endpoint.py
...........................................................              [100%]
$ python3 litellm/scripts/ci_cd/check_files_match.py
Passed! Files model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json match.
$ COST_MAP_GUARD_AUTHOR_TYPE=Bot python3 litellm/scripts/ci_cd/cost_map_guard.py --base HEAD^ --head HEAD --target origin/main --head-ref litellm_registry_audit_20261128
cost map guard passed (human PR, file checks only)

The Rust check-registry command and the test-tree Ruff lint check both exited successfully. The only whole-file Ruff formatting difference was already present on the base.

Type

Bug Fix


Note

Low Risk
Metadata-only updates to the model registry with a focused regression test; no routing, billing, or runtime behavior changes.

Overview
Adds successor_model, deprecation_date, and deprecation_source to nine Mistral cost-map rows (devstral family, glm-5-2, mistral-medium-latest, open-mistral-nemo, pixtral-large-latest, and two voxtral aliases), mirroring Mistral’s documented schedule so the model deprecations API can surface retirement dates and replacements. Pricing, limits, and capability flags are unchanged; both model_prices_and_context_window.json and its backup stay in sync.

A new parametrized unit test asserts four -latest/alias Mistral IDs share the same deprecation date and successor as their pinned version rows.

Reviewed by Cursor Bugbot for commit cd1f8f4. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

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 sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@veria-ai

veria-ai Bot commented Nov 28, 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

@greptileai

@kerry-berri

Copy link
Copy Markdown
Contributor

bugbot run

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · This PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Adds retirement dates, successors, and source URLs for nine Mistral model IDs in both registry copies. Adds a four-case test that checks aliases against their versioned rows. Prices, limits, and capability flags remain unchanged. No actionable issues were found.

  • Mistral deprecation notices include retirement dates and suggested replacements.

Reviews (1) · Last reviewed commit: "fix(cost-map): add Mistral model retirem..." · Reviewed by Greptile

@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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit cd1f8f4. Configure here.

This branch has not been deployed

No deployments
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