If our AI provider disappeared tomorrow: how we made the model a setting
On October 12 I asked a simple question: if our AI provider shut down tomorrow, would we be dead in the water? We're a small company that builds clinical documentation software for therapists, and nearly every AI feature we ship runs on Claude. The honest answer that day was "not dead, but badly slowed," and the same afternoon we started changing it.
This week a LinkedIn post described a company with 400 developers, a bill about to rise tenfold and a week to switch providers, because every workflow was built for one vendor. We couldn't find the original Reddit thread, so treat the numbers as a story. The situation is real enough, though, and it's the one we planned for.
First, list what would stop
We searched every repository for code that calls an AI provider and wrote down what each caller does when the provider fails. The first list missed live dependencies, and an independent review caught them. That's why the search now runs again on the first of every month and compares the result with the inventory we last accepted.
The inventory had a few good surprises. Every clinical AI route we checked fails with an error or a fallback message, never with invented text, so an outage costs time and not accuracy. Dictation, payments, the websites and the apps themselves don't depend on the AI provider at all.
The clinical AI: the model is now one setting
Our clinical features (filling a form from a therapist's dictated summary, drafting a session note, pre-filling an intake from a referral letter) call Claude through Amazon Bedrock, under our AWS health-data agreement. Before October they used Bedrock's Claude-specific request format, so switching models would have meant rewriting every call and every reply parser.
Now they use Bedrock's Converse API, which takes one request shape for Claude, Amazon's own models, Meta's Llama, Mistral and others. One setting chooses the interface (BEDROCK_API=converse) and another names the model. We didn't change models; we're still on Claude Haiku 4.5. What changed is that trying another one is a configuration change instead of a rewrite.
The same day, the intake helper moved off a direct call to the provider and onto the same Bedrock path, so referral letters stay under the same agreement as everything else.
A test set decides, not a demo
Being able to switch is only useful if you can tell whether the new model is good enough for clinical records. So we built a test set: 19 synthetic cases, no real patient data, run against the live form-assist code rather than a copy of its prompts. Each case has pass or fail checks: did the note stay within what the clinician said, did a diagnosis code keep its decimal, did an empty section get marked instead of padded. Running the first 16 cases three times each cost about nine cents.
Its first full run found a real defect in a feature we already shipped. Given a one-line note ("Brief check-in. Client stable, no new concerns. Continue current plan."), the session note wrote in observations nobody made. The old prompt passed 5 of 21 runs of those cases; the fixed one passed 21 of 21. We'd have kept shipping that without the test.
BEDROCK_API=converseThe other layers
- Most of our client assistants run on a small engine of our own. One setting picks the provider: Anthropic's API, or any service that speaks the common OpenAI-style chat format. A switch is that setting plus a full run of the client's test cases on the new model; nothing in the assistant's instructions changes.
- Dictation was chosen by measurement. In May we ran two speech-to-text vendors over the same synthetic clinical recordings; the winner returned transcripts 5 to 20 times faster. This month we compared that vendor's newer model with the one we use: about the same on ordinary words (6.08% against 6.25% word errors), but worse on billing and diagnosis codes, so we stayed.
- Video visits are built to work with more than one video provider, and they're switched off today because none of those providers has a signed health-data agreement with us. The provider is a setting, but changing it doesn't turn video on. The server creates a visit link only when a second setting names that same provider as the one under a signed agreement, and we change that setting only after the agreement is signed and the provider confirms its health-data mode is on. When the first customer on the plan that includes video asks for it, we'll sign the agreement, confirm that mode, then switch video on. Until then, the phone and web apps tell anyone who tries: "Telehealth provider not yet configured. Contact support."
What this doesn't solve
- No automatic failover. If Bedrock went down, the clinical features would show an error until someone changed a setting. For a team our size, that's the right trade: failover code is more code to get wrong.
- We haven't run another vendor's model through the clinical test set yet. Before we did, we'd confirm that model is covered by our health-data agreement. Prompts tuned on Claude may need work on another model, and the test set is how we'd find out how much.
- Our own engineering work is the hardest part to move. We build with Claude Code. Our instructions, rules and checks are plain Markdown and scripts in git, so the knowledge travels. The hooks, permission settings and scheduled jobs that wire it into the tool would need rebuilding, which we estimate at several days of work. I wrote that trade-off up separately: Using Claude Code fully without getting locked in.
We bought no new service to do any of this. A company our size can't own the model, but it can own the code that decides which model to call and the test that decides whether a new one is good enough.
More Facets Novum Insights · Facets Novum LLC · facetsnovum.com
