Skip to content
mentoor

Topic 2 of 5 · 4 min read

Depending on a model provider

Goal: Write a provider-risk plan that covers a model deprecation, an outage and a terms change with a test before switching.

If your product runs on one provider's model, that provider can change, slow down or retire what you depend on, so you need a written plan and a test you can run before you must. You do not need to be multi-cloud on day one. You need to know what breaks and how fast you can move.

Check yourself · 1 of 3

A provider announces it will retire the model your product uses. What should you do first?

Choose one answer

Why it matters

Providers retire models on a schedule and publish those dates on their deprecation pages (Anthropic, OpenAI and Google each keep one). They also update models in place, so the same name can behave a little differently from one month to the next. Services go down. Rate limits tighten when you grow. Terms change: price, data use, allowed use. Any of these can break a feature or your margin, and customers will blame you, not the provider.

How to do it

Write a one-page risk plan with four parts.

  1. Map the dependencies. List every place a model is called, which model, and what the feature does if the call fails. Include small things, such as a classifier in the sign-up flow.
  2. Keep a test set. Collect 50 to 200 real inputs with the answers you consider good, and a way to score a new model on them. This is the test you run before any switch, and it is also how you notice silent behaviour changes.
  3. Prepare the switch. Keep prompts and model names in configuration, not scattered in code. Keep a second model tested and ready, even if it is worse. Know what it would cost.
  4. Plan for the bad day. For an outage: retry, then fall back to the second model or a plain message, and tell customers. For a deprecation: read the notice, schedule the test, and move well before the end date. For a terms change: name who reads the notices and what would make you leave.

Before and after

Before: "We use one model. If it goes away we will fix it then."

A deprecation notice arrives with a fixed end date. The team finds that three prompts only work with this model, and has no test to compare.

After: "Our 120-case test set runs nightly on the current model and a backup. We saw a drop in one category last month, so we knew before customers did. Switching is a config change plus a test run, about two days."

What goes wrong

  • Testing only after the notice. You then do the work under deadline pressure.
  • A backup that was never run. It has not been tested on your prompts, so it fails when needed.
  • Ignoring the small calls. A forgotten model in a side feature breaks on the retirement date.
  • Assuming a new version is better. It may be better overall and worse on your task. Test on your own cases.

Examples

A one-page provider-risk plan

Dependencies: drafting (main model), ticket tagging (small model). Test: 150 past tickets with approved replies, scored weekly. Outage: retry twice, then show a saved draft and email the customer. Deprecation: the owner checks the provider's deprecation page on the first Monday of each month and books a test run when a notice appears. Terms: the founder reads each notice and checks data-use and price changes.

A silent change caught

The nightly test shows that refund-policy answers fell from 94 to 86 correct out of 100, with no code change. The team compares outputs, finds the provider updated the model, adjusts one prompt and ships the fix before any customer complains.

Key points

  • Providers retire models on published dates, change behaviour, go down and change terms, and customers blame you.
  • Map every place a model is called and what happens when the call fails.
  • Keep a test set of real cases so you can compare models and notice silent changes.
  • Keep model names and prompts in configuration, with a tested backup ready.
  • Run the test before you switch, never after.

Common mistakes

  • Waiting for a deprecation notice before building any test.
  • Hard-coding a model name and prompts in many files.
  • Holding a backup model that has never run on real cases.
  • Assuming a newer model will do better on your task without checking.

Check yourself · 2 of 3

What is a test set in a provider-risk plan?

Choose one answer

Check yourself · 3 of 3

Why keep model names and prompts in configuration rather than spread through the code?

Choose one answer

Practice items, not counted towards your mastery.

Start here