Automatic routing
With automatic routing, your app sends model: "auto", and Proxium chooses the tier for each call. A short greeting can go to a cheap tier, and a long coding task to a strong tier. Your app does not decide.
:::info State on proxium.tech
Automatic routing is off on proxium.tech today. A call with model: "auto" uses the models of the tier auto, like any other tier. You can set those models on Routing.
:::
How it works
The classifier never makes a call fail. If it fails, or the call has no user message, Proxium uses the tier standard.
Two kinds of classifier
| Kind | What it gets | What it answers |
|---|---|---|
| A chat model | A prompt that asks for one word, a tier name | The tier name |
| Jev, from TypeSafe | The user text, and the tiers with a description of each | A tier and a confidence from 0 to 1 |
The classifier tier can hold both kinds. The kind that comes first in the tier runs first. If it fails, or Jev is less sure than the minimum confidence of the gateway, the other kind decides.
What it costs
The classifier call is a real model call. Proxium records its cost against your project, like any call. A key that reached one of its limits skips the classifier, because Proxium refuses that call anyway.
Related pages
- Route requests to models: tiers, and which models a tier gets.
- The request flow: where the classifier runs in a call.