Kolkata ·  
AI engineering
production
short · 3 min

Model upgrades

Moving to a new model version without breaking things: pinned versions, evals first.

updated 29 Sept 2026

There's a line like this somewhere in most LLM apps:

MODEL = "claude-sonnet-5"

It looks like config. It decides more about how the app behaves than most of the code around it. So two questions: can what that name points to change without us touching it? And when we do change it, how do we know nothing broke?

Can the same name change?

It has happened. In 2023, researchers ran the March and June versions of GPT-4 through the same tests. On telling prime numbers from composite ones, accuracy fell from 84% to 51%. GPT-4 also answered fewer sensitive questions in June, and made more formatting mistakes in code. A common thread was that it had gotten worse at following instructions. Anyone calling the API saw the same model name the whole time.

Providers answer this with pinned versions. On Claude, every model ID is a fixed snapshot: the weights never change, and an improved model ships under a new ID. But which names are IDs? Older Claude models have a date in the ID, like claude-sonnet-4-5-20250929, plus a short alias, claude-sonnet-4-5, that points at the newest dated snapshot. The alias can move. From the 4.6 generation on, IDs have no date, and lots of people assume claude-sonnet-5 is an alias too. It isn't. It's the snapshot.

So our line is safe from silent swaps. It isn't safe forever, though. Pinned models get retired. Anthropic marks a model deprecated, gives at least 60 days' notice, then retires it, and requests start failing. Claude Opus 4.1 was deprecated on 2026-06-05 and gone on 2026-08-05. Which means we'll be changing that line every so often whether we like it or not.

Changing it safely

An upgrade is a release, and it runs through the evals loop. Run our eval set on the current model and record the score: that's the baseline. Change only the model ID, run the same set, and compare, looking at the failures and not only the number. Then, if we want, adjust the prompt for the new model and run again.

Why keep that last step separate? A newer model sometimes does better with a simpler prompt than the old one did with lots of tuning. GitHub's secret-scanning team works exactly this way: rerun on every real change to the prompt, the model, the input or the system, change one thing at a time against a known baseline, and record the prompt, model and dataset version with every run. Their aim is to make testing a new model cheap enough to be routine. Keeping the model ID next to the prompt it was tested with helps (prompt versioning).

Run the real request code, too, not a cleaned-up copy. Upgrades can break requests, not just answers. On Claude 4.7 and later, setting temperature to anything but the default returns an error.

A passing offline eval is enough to start trying the new model on real traffic, carefully. It doesn't prove how the model behaves on every case.

What pinning doesn't cover

Back to our one line. Even with a fixed ID and fixed weights, the serving setup around the model can change: the request router, safety classifiers, sampling logic. Anthropic says those updates occasionally cause small differences in behavior with nothing changed on our side. How small, and how often, isn't something we can see from outside. That's the case for keeping some online evals running on production traffic even when the line hasn't moved.

Further reading