AI in Production
When Your Provider Retires the Model
· 7 min read · Anton Babayan, Founder
The model you built against has a retirement date, and you do not set it. When the notice arrives, the size of the job is already decided. It was decided by how much of your system is tuned to that particular model rather than to the task it performs.
The code is not what breaks
Changing the model name in a configuration file takes a minute. Teams who have not been through a migration expect that to be most of it, and are surprised by what happens next.
What breaks is everything shaped around one model's behaviour. Prompts that work because of how that model handled a particular edge case. Output parsing that relies on its formatting habits, including the ones it was never documented to have. Thresholds set against its error rate. Retry logic tuned to its refusals. Few-shot examples chosen because they moved that model and not because they describe the task.
All of those fail silently. The system keeps answering. The answers are worse in a way that does not raise an error, and if nobody is measuring, the first report comes from a customer weeks later.
The work is evaluation
A migration is a measurement job with a configuration change attached, and the ratio between those two surprises people every time.
You run the same cases through the new model, compare them against the numbers the old one produced, find where it is worse, and decide whether each gap is a prompt that needs rewriting or a real regression you have to accept or work around. Without a set of real cases and recorded results, none of that is available to you, and the migration becomes an argument between people's impressions of a handful of examples.
This is the clearest argument for building an evaluation set early. Pilots drop it more often than any other piece, and the retirement notice is where that economy gets charged back with interest.
What makes the next one cheap
Write prompts for the task, not for the model. Every instruction that exists because of a quirk is a line you will have to understand again later. Keep a comment where you did it anyway, saying which behaviour it was working around, so the next person can test whether it still applies.
Parse defensively. Ask for a structured output and validate it against a schema rather than reading the shape by hand. A model that formats differently should produce a validation failure you can see rather than a field that silently reads empty.
Keep the evaluation set outside the provider. A set that lives in one vendor's console cannot be run against a competitor, which makes the comparison you most need the one you cannot do. This is the same boundary that decides what a move between providers costs.
Record the numbers themselves. “It was fine” from the last migration tells you nothing this time. The error rate on each category does.
Running two models for a while
Where the output matters, the cheapest safety is to run both for a period and compare. Send the real traffic to the model you trust, send a copy to the candidate, and grade the difference offline. It costs the inference twice over on a subset, which is small against the cost of finding the regression in production.
Then pick the date yourself rather than letting the provider's deadline pick it. A migration you complete two weeks before the cutoff is ordinary work. One you complete two days after the notice becomes urgent is the same work done badly.
Budgeting for it
Expect this more than once a year and put it in the running cost rather than treating each notice as an unplanned event. It belongs in the same line as the rest of what a system costs after it works, and it is one of the items most often left out of the first year's figure.
The short version
The retirement date is not yours. The code change is minutes and the evaluation is the job. Write prompts for the task, validate the output against a schema, keep the evaluation set where you can run it against anyone, and record numbers rather than verdicts. Then the next notice is a week of work instead of a quarter.
Frequently asked questions
How much notice do providers give?
Enough to plan with and rarely enough to be comfortable, and it is their schedule rather than yours. The practical answer is to treat a migration as a thing you will do more than once a year and to make it cheap, instead of treating each notice as an emergency.
What actually breaks when the model changes?
Almost never the code. What breaks is everything tuned to one model's behaviour: prompts that worked because of how that model handled an edge case, output parsing that relies on its formatting habits, and thresholds set against its error rate. These fail quietly, which is the problem.
How do you know the new model is as good?
By running the same evaluation set through it and comparing the numbers to the ones the old model produced. If you have no such set, you cannot answer the question, and the migration becomes an argument between people's impressions.