Most people expect a retired model to return an error. Sometimes it does. Sometimes it quietly keeps working, just not the way you think.

I just released luna-check v0.5.0, a small open-source CLI and GitHub Action that scans your code for AI model names that are retired or about to be. It now covers 11 platforms and 429 model entries, including five new providers: Mistral AI, DeepSeek, xAI, Cohere and Groq.

While adding them, I found that "retired" means very different things depending on the provider.

Two kinds of retirement

  1. The request fails. DeepSeek's legacy names deepseek-chat and deepseek-reasoner stopped working on July 24, 2026 (15:59 UTC). Groq shut down llama-3.3-70b-versatile and llama-3.1-8b-instant on August 16, 2026. Mistral retires models on dated schedules too. If one of these strings is still in your code, your calls break.

  2. The request silently redirects. xAI retired models like grok-3 on May 15, 2026, but the slugs still resolve. Requests are routed to grok-4.3 and billed at its rates. Nothing errors, so nothing tells you that your output quality and your bill just changed.

So luna-check v0.5.0 now reports these differently:

HIGH: the model is retired and requests fail
MEDIUM: the model is retired but requests are redirected to another model (never fails your CI run, but you should know)

Here's what it reports for a small file that calls both providers:

python
def summarize(text):
r = deepseek.chat.completions.create(
model="deepseek-chat", # line 8
...

def classify(text):
r = xai.chat.completions.create(
model="grok-3", # line 15
...
Line 8 HIGH LC001 "deepseek-chat" was shut down on Jul 24, 2026 (DeepSeek API), so requests
to it fail. Replace it with "deepseek-v4-pro" or "deepseek-v4-flash".
(Note: "deepseek-v4-flash" was itself retired on Sep 10, 2026 and now
redirects to "deepseek-flash".)

Line 15 MEDIUM LC001 "grok-3" was retired on May 15, 2026 (xAI API) and now silently redirects
to "grok-4.3" with "none" reasoning effort: a different model, so output
and pricing can change.
Things I learned from the official pages
Replacements get retired too. DeepSeek's recommended replacement for deepseek-chat was deepseek-v4-flash, which was itself retired on September 10, 2026. luna-check now adds a note when a suggested replacement is already gone.
A redirect target can disappear. xAI's grok-code-fast-1 redirected to grok-build-0.1, which reached end of life on November 19. No page says where those requests go now, so luna-check flags it as HIGH.
"Deprecated" is not "shut down". Cohere lists command-r, command-r-plus, command and command-light as deprecated with no shutdown date, so they're reported as LOW, not HIGH.
Short IDs are tricky. A model called command would match every add_argument("command") in your codebase. luna-check only reports word-like IDs when they're the value of a model setting.

Every entry comes from the provider's own deprecation page, and a weekly GitHub Action refreshes the data automatically.

Try it

In your browser, no install: https://prasadrandika.github.io

Or locally:

bash
pip install git+https://github.com/prasadrandika/luna-check@v0.5.0
luna-check .

Or as a GitHub Action, so new retired model names never sneak into your repo.

Repo and release notes: https://github.com/prasadrandika/luna-check/releases/tag/v0.5.0

If your provider isn't covered, or luna-check flags something it shouldn't, please open an issue. I'd love the feedback.