Loading video player…

Upgrade the Model With Evals

In this lesson, the provider’s notice gave the assistant’s answer model a retirement date and named a successor. You treated the upgrade as a tested change. You ran the evals several times on each model, read every case that got worse, adjusted the prompt, checked the request settings, and switched the register well before the date.

Key Points

  • A notice starts the clock. After the retirement date, every call to the old model fails, so the assistant has to move before then.
  • Swapping the id and running once isn’t an upgrade. With the successor swapped into the register, one eval run gave both models 22 of 24 on a twenty-four-case set, fourteen of them in the safety slice (hazards and emergencies). The successor missed one more safety case, but only on one run. A pass rate moves by itself from run to run, so one run can’t tell two models apart.
  • Run the set several times on each model. Over five runs, the current model’s safety slice alone moved from 10 to 13 of 14. Overall, the current model passed 86.7% and the successor 92.5%. The safety slice was about the same, 84.3% and 87.1%, a gap inside that spread. Your numbers will differ.
  • Read the cases that got worse. Case by case, five cases got better and two got worse, both hazard questions about the Valbrune ford: one the current model always passed, and one it already often missed. The successor gave the depth and the date of the warden’s 16 July report but left out its advice against crossing.
  • Newer models follow the same prompt differently. The prompt tells the model not to decide for the hiker, and the successor reads that so literally that it holds back the wardens’ advice too. A safety case that fails clearly more often, or for a new reason, blocks the change, even when the slice holds steady.
  • Adjust the prompt for the new model. Prompt version 4 adds one line.
  • Check the provider’s migration notes and request settings. With a temperature set, the current model answered and the successor returned a 400 error. The eval runs sent none. If your app sends one, drop it before the next runs, so they test the request you’ll ship.
  • Rerun, then switch, well before the date. Five more runs on the successor passed every case every time. That’s evidence for the switch, but not proof, since the new prompt line was written for these cases. Only then do prompt version 4 and the successor ship. The overall rate went from 86.7% to 100.0%, and the safety slice from 84.3% to 100.0%, on these twenty-four cases.

Each provider publishes its retirement dates. Both pages were checked on December 2, 2026:

  • OpenAI: The deprecations page lists each shutdown date with its notice date and a recommended replacement. Generally available models get at least six months’ notice, and previews can get less.

  • Anthropic: The model deprecations page gives each model’s earliest retirement date, with at least 60 days’ notice. After that date, a call to the retired model returns a 404 error.

Before the eval runs, read the provider’s migration notes and check the request’s settings against the new model. Keep two kinds of change apart:

  • A model-specific restriction applies to one model. OpenAI’s gpt-6.2-sol rejects temperature with a 400, while gpt-5.4-mini-2026-03-17 accepts it.

  • An API-version change applies to every model. Anthropic’s API version 2026-10-21 removes the sampling parameters, temperature and top_p, for every model.

Then send the evals the same request the app sends.

Final Code

The line added to the prompt, saved as a new version, prompts/v4.txt:

Language: Text Filename: prompts/v4.txt
Always pass on advice a report gives, such as wardens advising
against crossing, with its date. That advice is the wardens',
not your decision.

The video’s runs used OpenAI on December 2, 2026: gpt-5.4-mini-2026-03-17 as the current model, gpt-6.2-sol as its successor, and gpt-6.1-terra as the judge.

Here’s the OpenAI register after the switch. gpt-6.2-sol answers as itself, and its model page lists no dated ID and no Snapshots section, so its own ID is the closest pin available. It isn’t confirmed as a snapshot and could move like an alias. If it moves, the change-detection script from Pin the Model You Ship catches it, because that script watches the model each response names:

Language: JavaScript Filename: model/config.js
  // OpenAI's deprecations page, checked 2026-12-02:
  // no shutdown date announced for these three.
  openai: {
    answer: "gpt-6.2-sol", // no snapshot listed: watch response.model
    fast: "gpt-6-luna",
    judge: "gpt-6.1-terra", // a snapshot, per its page
  },

Next, in Exercise: Plan a Model Upgrade, you’ll make this call for the wardens. The exercise runs in your browser on recorded runs, with no key. If coding exercises on RealJS are new to you, then its Contents tab explains how they work.

00:00 Your answer model is pinned in the register. Then the provider’s notice gives it a retirement date and names a successor. After that date, every call to the old model fails.

00:12 So the assistant has to move, with its hazard answers still right.

00:18 The quickest upgrade is one line in the register, where you swap the current model for the successor. Then you run the eval set once on each model. This video’s set has twenty-four cases.

00:30 Fourteen of them are hazards and emergencies, which make up the safety slice. Both models pass twenty-two of twenty-four. The successor misses one more safety case, on one run.

00:43 A pass rate moves by itself from run to run, so one run can’t tell two models apart.

00:51 So run the set five times on each model. The current model’s safety slice alone moves from ten to thirteen of fourteen.

01:00 Over five runs, the current model passed eighty-seven percent overall, and the successor ninety-two and a half. The safety slice is about the same, eighty-four and eighty-seven percent, a gap inside that spread.

01:14 Your numbers will differ.

01:18 Now compare them case by case. Five cases got better. Two got worse, both about the ford. The current model always passed one and already often missed the other.

01:30 The successor’s answer gives the depth and the date, but leaves out the report’s advice not to cross.

01:37 Newer models follow the same prompt differently. Yours says not to decide for the hiker, and this one reads that so literally it holds back the wardens’ advice.

01:46 A safety case that fails clearly more often, or for a new reason, blocks the change, even when the slice holds steady.

01:56 So adjust the prompt. Version four adds one line: pass on any advice a report gives, with its date, as the wardens’ advice, not the model’s decision. Check the provider’s migration notes and request settings.

02:10 With a temperature set, the current model answers and the successor returns a 400 error. The runs so far sent no temperature. If your app sends one, drop it before the next runs, so they test the request you’ll ship.

02:24 In five more runs, every case passed every time. That’s evidence, not proof, since the new prompt line was written for these cases. Only now do you ship version four and switch the register, well before the retirement date.

02:42 A new model is a change like any other. Run the eval set several times on both models, read every case that got worse, adjust the prompt, then switch before the date.

02:54 Here, the overall rate went from eighty-seven to a hundred percent, and the safety slice from eighty-four to a hundred, on these twenty-four cases. Next, in Exercise: Plan a Model Upgrade, you’ll make this call for the wardens from recorded runs.

Become a Member to join the conversation.