Why should applications calling a shared model gateway name gateway-owned model aliases instead of provider model names?
answer
- decouple callers from suppliers
- one config change, not fifty deploys
- alias resolves to provider, model, defaults
- response names what really answered
basics
~10 sA gateway-owned alias names a job, not a supplier, so the platform repoints one reviewed config entry instead of every application editing and redeploying; each response still reports which provider and model actually answered.
solid answer
~40 sProvider model names are a supplier's identifiers. Hard-coded in fifty services, a retirement or a better model means fifty code changes and fifty deploys, and teams quietly drift onto different versions. An alias such as `support-summary` or `chat-default` is a name the gateway owns that resolves to a provider, a model and default parameters, so repointing it is one reviewed config change. It also gives logs, budgets and alerts a name that survives the model changing. The price is that a repoint changes behaviour for every caller at once, so each alias needs an owner who gates repoints on the dependent features' evaluations, and the gateway must return the resolved provider and model on every response so nobody has to guess what answered.
code
yaml · 15 linesaliases:
chat-default:
owner: platform-team
revision: 14
target:
provider: provider-a
model: provider-a-model-2026-06
defaults:
output_token_limit: 1024
ticket-triage:
owner: support-tools-team
revision: 3
target:
provider: provider-b
model: provider-b-small-v4go deeper
Recall that an alias is a gateway-owned name resolving to a provider, a model and defaults, and that it turns a model change into one config edit.
Explain what an alias resolves to, why each response must carry the resolved model and revision, and how floating and pinned aliases differ.
Show how you would run a repoint safely: an owner per alias, the dependent features' evaluations as the gate, a staged rollout and a recorded revision.
Weigh how much freedom teams get: shared versus feature aliases, whether direct provider names are allowed in production, and who carries migration cost when a model retires.
## What a model alias is A **model alias** is a name the gateway owns, such as `support-summary`, `chat-default` or `code-review-large`, that callers write where they would otherwise write a provider's model identifier. At request time the gateway **resolves** the alias to a concrete target: a provider, that provider's model identifier, and often default parameters such as an output-token limit. The caller sees a stable name that describes a job; it never sees the supplier's naming scheme. Provider model identifiers are a supplier's vocabulary. Providers rename, version, deprecate and retire models on their own schedule, and each one spells its identifiers differently. When dozens of services hard-code them, the company's model choices are scattered across dozens of repositories. ## Why provider names in application code hurt - **Retirement becomes a fleet-wide migration.** When a provider retires a model, every service that names it must change code, pass review and redeploy, usually against a deadline the provider sets. - **Teams drift apart.** Without one place that says what "the default chat model" is, each team keeps whatever was current when it shipped, and the company runs many versions without meaning to. - **Nothing records intent.** A provider model name says what is called, not why. An alias like `ticket-triage` tells the platform which feature depends on it, so a change can be tested against that feature. - **Policy has nothing stable to attach to.** Dashboards, budgets and alerts keyed by a provider model name break when the model changes; keyed by an alias, they survive it. ## What an alias resolves to | part | example | why it lives in the alias | |---|---|---| | provider | an internal name for one provider account | callers should not depend on which supplier answers | | model | that provider's identifier, pinned or floating | the part a repoint changes | | defaults | output-token limit, temperature | consistent behaviour for every caller | | owner | the team accountable for the alias | decides who may repoint it | | revision | a config version number | lets responses and logs say which mapping served a call | The resolution has to be visible after the fact. The gateway should return the **resolved provider and model**, plus the alias revision, on every response. Otherwise the first time a repoint changes answer quality, nobody can tell which model produced last week's outputs. What the gateway's request log keeps for a later replay is a separate subject; the response field is the minimum. ## Who may repoint an alias A repoint is a production change for every caller at once, so it needs an owner and a process: 1. **Classify the alias.** A shared alias (`chat-default`) belongs to the platform team; a feature alias (`ticket-triage`) belongs to the feature team that depends on it. 2. **Gate the repoint on evaluations.** The owner runs the dependent features' evaluation suites against the new target before switching. A model that scores better in general can still break one team's output format. 3. **Roll it out in stages.** Send a fraction of the alias's traffic to the new target, compare, then complete. 4. **Announce and record it.** Callers can subscribe to changes on the aliases they use, and every revision is kept so a regression can be traced to the day it began. A calling team should not be able to repoint a shared alias on its own: one team's improvement can be another team's regression. ## Floating versus pinned aliases Some aliases should float ("the current default for general chat") and some should pin one dated model version because a feature has been tuned against it. Both are legitimate; the alias makes the choice explicit and reviewable instead of implicit in code. Three neighbouring subjects are easy to confuse with aliases: - **Pinning a dated snapshot so an evaluation suite stays reproducible** is a question about evaluation hygiene, not about naming. - **Switching to another target when the aliased one fails** belongs to the gateway's failover policy. - **Choosing a cheaper or stronger model per request** belongs to model routing. An alias is a name with an owner and a revision history, not a routing algorithm. ## The escape hatch Many gateways still accept a fully qualified provider-and-model name for experiments. That is reasonable when it is explicit, logged and discouraged for production: a team that names a provider model directly has opted out of repoints and owns its own migration when that model retires. Counting how much traffic uses direct names is a cheap way to see whether aliases are actually being adopted.
- Should a team be able to bypass an alias and name a provider model directly?Usually yes, through an explicit path: the gateway accepts a fully qualified provider-and-model name, logs it and flags it. It suits experiments and research. A production feature that uses it has opted out of repoints, so its team owns the migration when that model retires. Tracking the share of traffic on direct names shows whether aliases are really adopted.
- What should a gateway response carry when the call used an alias?The resolved provider and model identifier and the alias revision that served it. Logs, dashboards and bug reports can then name what really answered. Without it, a quality change after a repoint looks like a mystery, and a team cannot tell whether its own prompt change or the platform's repoint caused it.
- Aliases are cosmetic renames of provider model names with no operational value.
- Any calling team may repoint a shared alias whenever a newer model ships.
- Once callers use aliases, nobody needs to know which model answered.
- A repoint is safe without evaluation because the request shape stays the same.
- Hard-coding provider model names is fine because providers rarely retire models.