Teriyaki

Chronicle 2. The model changes, the software stays

Teriyaki5 min read

Choosing the right AI model for each job is easy to say and awkward to do if every model brings its own piece of code. In this second episode of Teriyaki's chronicle we explain why we routed every model call through a single controlled point, and what changes for people who use the product.

Where we started from

In the first episode we described the plan of 11 September 2026: five goals to put Teriyaki in order before speeding up. The third one said this: every call to AI models goes through a single point, instead of many points scattered across the code.

The problem to solve was concrete. The choice of model was repeated in several parts of the product, with a block of conditions for each case. Adding a model meant touching several files. So did changing one. And every extra point was a place where a call could go out without anyone counting it.

It is not just our problem. It happens to anyone who starts with one model and then adds a second, a third, one for images, one for reading documents.

The principle: a single point of passage

The choice is simple to state. The product code does not talk to the models directly: it addresses a single point in the platform, using a name only the platform uses, and that point knows how to reach the real model. Every call goes through it, and that is where it is logged.

Three consequences, which matter more than the technology:

  1. A model is changed in one place only. If a model improves, gets cheaper or is retired, you change the point of passage, not every piece of software that uses it.
  2. Every call is visible. It goes through one place, so it is counted in one place, with its cost.
  3. The code carries no secrets. The keys to reach the models live in the platform, not in the programs.

You will not find model names in this chronicle. It is not reticence: they change every few months, and for someone using an app what matters is that the result is verified, not the name of the engine that produced it. AI models are external services, and we say so plainly.

Why model names should not live inside apps

There is something you only notice when a model is retired. If its name is written inside a tool, that tool stops working one day, and nobody knows why. If the tool uses a platform name, on retirement day that name moves to the equivalent model and the tool does not break.

Model written into the software Platform name, model reached through the point of passage
every change touches the code the change is made in one place
every tool has its own keys the keys live in the platform
costs are scattered every call is logged with its cost
a retired model breaks the tool the tool keeps working

What we discarded

  • A direct connection for each model. More code, more keys to guard, more places where something breaks.
  • Model selection scattered across the code. Every duplicated block of conditions was removed.
  • The idea of one model for everything. A simple summary and a long piece of reasoning do not need the same model.

What changes for people who use Teriyaki

  • You use an app, not a model. Whether AI is used to build the app or works inside it, you use an app and do not need to know which engine is underneath.
  • Every cost stays logged. Every run leaves its cost in the log, and every build has a spending cap.
  • A closed environment. The code runs isolated, and model calls go through a controlled point in the platform.

If you want to understand how to think about AI costs in general, start from How much does AI cost a business? Credits, limits and alerts. To see who Teriyaki is for, look at the home page.

How to choose the AI model for a job in your company

You do not need to be technical. Before choosing a model, answer these questions.

  1. Does the job require actions? If the AI has to search, write into a system or call a service, you need a model that can use tools.
  2. Are there images? Scanned invoices, photos, screenshots: you need a model that can read images.
  3. How long is the material? Contracts, manuals and long minutes call for a model that can keep a lot of text in mind at once.
  4. How often does it run? A job that runs a thousand times a month weighs more than one that runs once.
  5. How do you test it? Take three real examples, run them on two different models and compare the results, not the promises.

Among the questions to ask whoever sells you an AI service, add this one: if the model changes tomorrow, what do I have to redo? We cover it in Ten questions to ask an AI vendor before you sign.

Frequently asked questions

Why route model calls through a single point?

Because that way a model is changed in one place only, every call is visible and counted, and the keys do not live inside the programs. The software uses a platform name, not the model's name at the provider, and keeps working even when a model is retired.

Do app users have to choose the AI model?

No. People who use an app want a correct result, not a model name. Choosing the model is the job of whoever builds the platform, and an independent validator checks the result before the app goes live.

How do you choose the AI model for a business task?

Start from what the job has to do: actions, images, long texts, frequency. Then test two models on the same real examples and compare quality and cost. The biggest model is not always the right choice.

Let's start with one process.
In 30 minutes we'll know if it fits.

Book a demo