AI model that is retired or about to be
The change names an AI model its provider has retired, or will retire within 90 days.
Why it matters
A coding agent writes the model names it saw in training, and those are often a generation old by the time the code ships. Nothing fails while you build: the name is just a string, and the type checker and tests are happy with it.
Providers publish a shutdown date for each model. After that date, requests that name the model come back with an error, so the feature behind the call stops working for every user at once, usually with nobody watching.
Example
+const msg = await client.messages.create({
+ model: "claude-3-haiku-20240307",
+ max_tokens: 400,
+ messages: [{ role: "user", content: note }],
+});
What it detects
- Quoted strings on added lines that resolve exactly to a known model (no guessing from partial names) whose retirement date has passed or falls within 90 days. For Claude, only retirements Anthropic has announced on its deprecations page count, not the earliest possible dates it lists for active models; Claude served through Amazon Bedrock or Google Cloud follows their own schedules and is not flagged. Other providers use the dates in the public model price list IntentiAI ships, which match their deprecation pages.
- A retired model is marked Fix now, with no dollar figure, because calls to it fail. One retiring within 90 days is marked Fix soon. The cost audit labels them the same way.
- Names the provider's recommended replacement when it has one, otherwise the newest model of the same family in the price list.
- Test files and comments are skipped. The cost audit runs the same check over the whole repository.
What to do when it fires
Switch to the provider's current equivalent model and try the feature on a few real examples, since a newer model can answer differently.
Keep the model name in one setting or constant, so the next retirement is a one-line change.