Lesson 72.4 · 4 of 7 · 6 min read · Reviewed 24 Nov 2026
Model upgrades and deprecations
By the end, you can
- Plan model upgrades.
- Handle model deprecation and retirement dates.
The life of a model
released --> current --> deprecated (notice given) --> retired (stops working)
Providers publish deprecationDeprecation: Announcing that a model or feature will be retired on a set date. and retirement dates. After retirement, requests to that model idModel id: The exact string that names a model in an API request, such as a specific model version. fail. The deprecations page lists dates and recommended replacements.
Keep an inventory
List every model id in use, where (feature, job, eval grader), and its status. Model gradersLLM-as-judge: Using a language model with a rubric to grade another model’s outputs. in your eval pipeline count too: if the graderGrader: The part of an eval that decides whether an output passes, using code, a model or a person. changes, your scores can shift even when the product didn’t.
Pin, don’t float
Call a pinned, dated model id in production, not an alias that moves to the newest version (72.1). An alias is handy in a notebook, but in production it turns a provider’s release day into your unplanned upgrade. Record the model id with every traceTrace: A record of everything that happened during one request or agent run, as a tree of timed steps. and every evalEval: A repeatable test that measures how well an AI system performs on a set of cases with defined success criteria. score, so a change in behaviour can be traced to a change in model.
Breaking changes are API changes, not just quality changes
New model generations change more than answers. Recent examples from one provider’s move to its newest models:
| Change | What breaks | Fix |
|---|---|---|
Sampling settings (temperature, top_p, top_k) no longer supported |
Requests that set them fail or are ignored (6.1) | Remove them; steer with the prompt and structured outputs |
| Prefilling the assistant turn rejected | Code that starts the reply with { fails (13.3) |
Use structured outputs or a system instruction |
| Forced tool choice rejected | Extractors that force a tool fail (14.6) | Use structured outputs, or auto with clear instructions |
| Fixed thinking budgets replaced by adaptive thinking and effort | Old budget settings are rejected or ignored (13.6) | Set effort per route and re-run evals |
Read the provider’s migration guide for every upgrade, search your code for each listed parameter, and run the eval suiteEval suite: A versioned collection of eval cases, graders and thresholds run on every prompt, model or code change. with the new model before anything else. Other providers make similar breaks between generations, so keep these checks in your upgrade runbookRunbook: A written procedure for handling a known type of incident: symptoms, checks, actions and escalation..
Upgrade as a release
- Run evals on the new model with the current prompt.
- Tune prompts where results differ. Newer models can follow instructions more literally, or format differently.
- Check cost and latencyLatency: The time from sending a request until you get the response, or until the first token arrives when streaming. per task (71.1). A newer model may use more or fewer tokens for the same job, and a new tokenizerTokenizer: The component that splits text into tokens and maps each token to an id the model can process. can change tokenToken: The unit a model reads and writes: a word, part of a word, a space or a symbol, mapped to an integer id. counts for the same text (2.6).
- Run in shadow on real traffic first: send copies of live requests to the new model, log both answers, and grade the differences offline before any user sees one.
- CanaryCanary release: Releasing a change to a small share of traffic first and watching metrics before rolling it out further. (72.2).
- Roll out, keeping the old model as a fallback until retirement.
Don’t wait for deprecation
Better models often bring quality or cost gains. A regular review, say quarterly, keeps you off old models and spreads the work out.
Key points
- Model providers release new models and retire old ones on published schedules.
- Treat a model upgrade like any release: evals, prompt tuning, shadow or canary, then full rollout.
- Track deprecation dates for every model id you use, and leave time to migrate.
- Pin dated model ids in production and read each migration guide: new generations can remove API parameters, not just change answers.
Inventory model ids and retirement dates
List every model id in use, including eval graders, and check each against deprecation dates to order the upgrades.
You will have: An inventory check that marks each use as ok, plan, migrate now, retired or unknown, with an upgrade order.
Steps
- Run the starter: nothing is flagged and the unknown id passes as fine.
- Flag ids missing from the deprecations table as unknown.
- Mark retired ids and those within 90 days of retirement.
- Read the upgrade order and note the eval grader at the top.
Done when
- The eval grader is flagged as retired.
- The nightly summary job must migrate now (52 days left).
- model-gamma-1 is flagged as unknown, not assumed fine.
Open in the Playground No API key needed.
Starter code (Python)
# Keep an inventory of every model id in use, check it against deprecation dates, and order the upgrades.
# The ids and dates below are made up for the lab. Copy real ones from your provider's deprecations page.
from datetime import date
TODAY = date(2026, 11, 24)
WARN_DAYS = 90
DEPRECATIONS = { # id -> (status, retirement date or None, recommended replacement)
"model-alpha-2": ("retired", date(2026, 10, 1), "model-alpha-4"),
"model-alpha-3": ("deprecated", date(2027, 1, 15), "model-alpha-4"),
"model-beta-1": ("deprecated", date(2027, 6, 30), "model-beta-2"),
"model-alpha-4": ("active", None, None),
"model-beta-2": ("active", None, None),
}
INVENTORY = [ # (where it is used, model id)
("support chat", "model-alpha-4"),
("nightly summary job", "model-alpha-3"),
("ticket router", "model-beta-1"),
("eval grader", "model-alpha-2"), # graders count too: a changed grader shifts your scores
("internal search", "model-gamma-1"),
]
def check(model_id):
# TODO 1: ids missing from DEPRECATIONS are UNKNOWN: flag them, do not assume they are fine
status, retires, replacement = DEPRECATIONS.get(model_id, ("active", None, None))
if retires is None:
return "ok", None
days = (retires - TODAY).days
# TODO 2: days <= 0 is RETIRED (calls fail now); days <= WARN_DAYS is MIGRATE NOW; otherwise plan
return f"plan: {days} days left, move to {replacement}", days
results = [(where, mid, *check(mid)) for where, mid in INVENTORY]
for where, mid, verdict, _ in results:
print(f"{where:<20} {mid:<14} {verdict}")
order = sorted((r for r in results if r[3] is not None), key=lambda r: r[3])
print("upgrade order:", ", ".join(r[0] for r in order))
print(f"{sum(r[2].startswith('RETIRED') for r in results)} retired, {sum(r[2].startswith('MIGRATE') for r in results)} to migrate now")
Show a solution
# Keep an inventory of every model id in use, check it against deprecation dates, and order the upgrades.
# The ids and dates below are made up for the lab. Copy real ones from your provider's deprecations page.
from datetime import date
TODAY = date(2026, 11, 24)
WARN_DAYS = 90
DEPRECATIONS = { # id -> (status, retirement date or None, recommended replacement)
"model-alpha-2": ("retired", date(2026, 10, 1), "model-alpha-4"),
"model-alpha-3": ("deprecated", date(2027, 1, 15), "model-alpha-4"),
"model-beta-1": ("deprecated", date(2027, 6, 30), "model-beta-2"),
"model-alpha-4": ("active", None, None),
"model-beta-2": ("active", None, None),
}
INVENTORY = [ # (where it is used, model id)
("support chat", "model-alpha-4"),
("nightly summary job", "model-alpha-3"),
("ticket router", "model-beta-1"),
("eval grader", "model-alpha-2"), # graders count too: a changed grader shifts your scores
("internal search", "model-gamma-1"),
]
def check(model_id):
if model_id not in DEPRECATIONS:
return "UNKNOWN: not in the table, check the deprecations page", None
status, retires, replacement = DEPRECATIONS[model_id]
if retires is None:
return "ok", None
days = (retires - TODAY).days
if days <= 0:
return f"RETIRED {-days} days ago: calls fail now, move to {replacement}", days
if days <= WARN_DAYS:
return f"MIGRATE NOW: {days} days left, move to {replacement}", days
return f"plan: {days} days left, move to {replacement}", days
results = [(where, mid, *check(mid)) for where, mid in INVENTORY]
for where, mid, verdict, _ in results:
print(f"{where:<20} {mid:<14} {verdict}")
order = sorted((r for r in results if r[3] is not None), key=lambda r: r[3])
print("upgrade order:", ", ".join(r[0] for r in order))
print(f"{sum(r[2].startswith('RETIRED') for r in results)} retired, {sum(r[2].startswith('MIGRATE') for r in results)} to migrate now")