Route requests with a Dynamic LLM
A Dynamic LLM is a Model Hub entry that has no provider behind it. It carries a routing configuration instead, and at call time it resolves to one of your real models — either by evaluating ordered rules against signals taken from the request, or by asking a decider model to classify the request into a label.
Callers address it like any other model: same base URL, same model field, one key. Nothing changes on the client side when you later re-point the router at different models.
Who this is for
The click-paths are written so an operations lead can build a router without touching code. Each section then gives the engineer the payload, the exact signal semantics and the trap.
What you get
- One model key — say
smart-router— that callers put inmodelinstead of choosing a model per request. - A recorded decision for every request: which rule or label fired, which model actually ran, and the signals that produced the choice. Readable on the model's Routing tab.
- An optional fallback model that runs when the chosen model throws.
- Optional cost-aware routing: a rule, label or the default can point at a pool of models instead of one, and a policy picks the cheapest suitable one per request. Router-wide cost guards cap the spend per request, per conversation and per budget window.
- Routing analytics: what the router actually spent against what the same traffic would have cost on a baseline model, per route, model and guard, plus a shadow mode that measures a new policy before it touches traffic.
| Strategy | How the target is chosen | Extra cost per request |
|---|---|---|
| Rule-based | Ordered rules evaluated against signals computed from the request body. First match wins. | None — the rules are arithmetic on the request. |
| Model-based (decider) | A classifier model reads the latest user message and returns one of your labels; the label picks the target. | One extra model call, billed to the decider model. |
Rule-based routing is deterministic and free. Reach for the decider only when the split you need depends on meaning rather than on shape — "is this a support question or a code question" — and accept that you are paying a model call and adding its latency to every request.
Before you start
| You need | Where |
|---|---|
| At least two LLM models in the active project | Create your first model |
| Pricing filled in on the default model, if you want to route on cost | Model Hub → the model → Edit model |
| An API token to call the router with | Settings → API Tokens → Create Token |
Routing targets are drawn from LLM models in the active project only. Models of any other category — embedding, rerank, speech-to-text, text-to-speech, OCR — are not offered, and neither are other Dynamic LLMs. If the project has no LLM models, the form says so and there is nothing to select.
Create the router
Open Model Hub in the left menu, then Dynamic LLM among its pages. That item is a shortcut: it opens the model list at ?create=dynamic with the Create Dynamic LLM form on top of it — "Route each request to a different model by rules or by a decider model." Closing the form drops the create parameter and leaves you on the list.
The form has six sections — the last two, Cost guards and Measurement & rollout, are optional and collapsed until used — and a footer that reads 3 of 3 ready once the checklist — Name set, Default model chosen, Rules configured (or Decider & labels configured) — is complete.
1. Identity
| Field | Notes |
|---|---|
| Display name | Required. |
| Key | Leave blank to auto-generate from the display name. This is the value callers put in model. The form locks the field once the router exists — its hint reads "Key is immutable after creation." |
| Description | Optional. |
2. Strategy
Pick Rule-based or Model-based (decider). The choice decides whether section 4 is Rules or Decider; everything else is identical.
3. Default & fallback
| Field | When it runs |
|---|---|
| Default model | Required. Runs when no rule matches, and whenever the decider fails or returns something that does not map to a label. |
| Fallback model | Optional. Runs only when the chosen model throws. |
Both selects list your LLM models as Display name · key.
The When nothing matches, pick from a pool instead of the default model switch replaces the default with a pool (see Pools). The default model stays required: it is the last resort when no pool candidate can serve a request, and the baseline that savings are measured against unless you choose another one.
4a. Rules (rule-based)
Each rule card has a Label (free text, used in the decision badge and the reason line), a Route to target — Single model or Pool (cost-aware) — a Match control set to All conditions or Any condition, and one or more conditions. Add condition and Add rule extend the form.
Rules are evaluated top to bottom and the first match wins. Order them from most specific to least.
These are the signals, exactly as the form lists them:
| Signal | Type | How it is computed |
|---|---|---|
| Estimated input tokens | number | Total characters of the text content across all messages, divided by 4 and rounded up. No tokenizer is involved. Image parts and tool definitions contribute nothing. |
| Message count | number | Number of entries in messages, all roles included. |
| Last user message length | number | Character count of the most recent user message. |
| Complexity score (decision model) | number | The expected level index from the router's optional Complexity scoring (a decision model rating the latest user message on your levels, lowest first). Computed only when a rule references it; unset — so never matching — if no scorer is configured or the call fails. |
| Conversation spend so far (USD) | number | What this conversation has already spent through the router (child and decider calls), over a rolling 24 hours. See Conversations. |
| Budget used (% of Cost guards budget) | number | Share of the Cost guards budget spent in its window. Unset when no budget is configured. |
| Predicted output tokens (from history) | number | Estimated input tokens × the predicted output/input ratio, capped by max_tokens. Unset until the router has history. |
| Predicted output / input ratio | number | This conversation's ratio so far, else the router's recent average. Unset until the router has history. |
| Request uses tools | boolean | tools is a non-empty array, or tool_choice is present and not "none". |
| Structured output requested | boolean | response_format is present and not null. |
| Request has images | boolean | Any message part typed image_url, image or input_image, or carrying an image_url key. |
| Keyword in last user message | text | Substring or regular-expression match against the most recent user message. Both are case-insensitive. |
And the operators. The form offers only the ones valid for the selected signal; changing the signal resets the operator and clears the value.
| Operator | Applies to |
|---|---|
| > greater than, ≥ at least, < less than, ≤ at most, = equals, ≠ not equals | the numeric signals |
| is true, is false | the three boolean signals |
| contains, matches (regex) | Keyword in last user message |
A typical two-rule router: send anything with images or tools to the capable model, send short conversations to the cheap one, and let everything else fall through to the default.
The cost and history signals are conditional
The last five signals are computed only when a rule actually references them, and only under the rule-based strategy. When the lookup they need fails — no pricing on the default model, no history yet, no budget configured — the signal stays unset, and an unset signal never satisfies a condition, whichever operator you used. A default model left on the create form's zero pricing makes every cost estimate exactly 0, so > 0.01 never fires and < 0.05 always does.
Route on who is calling
Available from the next Cognipeer release
Caller conditions, pools, cost guards, shadow rollout, routing analytics, decision-model deciders, complexity scoring and routing through agents arrive with the next Cognipeer release.
Besides the shape of the request, a rule can look at who is asking and through which door. These are the caller signals. They are listed under the Caller group of the signal picker and take a list of values:
| Signal | Matches against | Operators |
|---|---|---|
| Channel | Where the call came from: dashboard, portal, api, embed, a2a, schedule or playground | in, not_in |
| User | The signed-in user's id | in, not_in |
| Group | Any of the caller's groups (resolved from the user when a rule needs it) | in, not_in |
| Agent | The key of the agent that is running | in, not_in |
| Portal | The key of the portal the call came through | in, not_in |
| API token | The id of the API token used | in, not_in |
| Project | The project id | in, not_in |
In the API the signals are channel, userId, groupIds, agentKey, portalKey, apiTokenId and projectId. The value is a list: an array, or a comma-separated string. A condition accepts at most 100 values, and an unknown channel name is rejected when you save.
Missing context never matches
If the caller did not supply a field, a condition on it is false, whichever operator you used, including not_in. A rule such as "userId not in the finance team" therefore does not fire for a call that carries no user. Put the catch-all in the default model instead of relying on a negative condition.
Rules still run top to bottom and the first match wins, so put the narrow caller rules first. A router holds at most ten rules and a rule at most five conditions; "all" or "any" matching works exactly as for request signals.
Example: send the support agent's traffic from the portal to the cheap model, and keep everyone else on the default.
{
"label": "support portal",
"targetModelKey": "gpt-small",
"matchType": "all",
"conditions": [
{ "signal": "channel", "operator": "in", "value": ["portal"] },
{ "signal": "agentKey", "operator": "in", "value": ["support"] }
]
}4b. Decider (model-based)
The decider is a decision model (category decision, created under Models → Decision). It is asked one closed question — which of your labels fits the latest user message — and answers with a probability per label, so there is no free text to parse and the router can threshold on confidence. A decision model can sit on top of any chat model that enforces a JSON schema (OpenAI, Azure, OpenAI-compatible), or be a native decision backend.
| Field | Notes |
|---|---|
| Decider model | Required. A decision-category model in the project. Called once per request; billed to the decider model and counted against the caller's budget. |
| Instructions override | Optional. Replaces the built-in routing instructions. Unlike the legacy prompt, the labels are always supplied as the question's choices — you do not repeat them. |
| Minimum confidence | Optional, 0–1. When the winning label's confidence (or, if the backend reports none, its probability) is below it, the request is not sent to the label's target. |
| Low-confidence target | Optional, shown once a minimum is set. Where those requests go; defaults to the router's default target. |
| Label | Required per card. Becomes a choice key of the question. |
| Route to | Required per card. The model — or pool — that label routes to. |
| Description | Describes the choice to the decider. |
The router row records the winning label's probability, the backend's confidence (when reported) and the margin to the runner-up (deciderProbability, deciderConfidence, deciderMargin). Input guardrails bound to the decision model run over the message before the decider sees it.
The decider sees the latest user message and nothing else. Not the system prompt, not earlier turns, not tools, not images. Route on those with rules instead.
Legacy chat deciders
Routers saved before decision models existed may name an llm model as the decider. That form keeps working (the model is asked to answer with a label and the text is matched back) and stays editable, but a chat model can no longer be newly attached as a decider — saving fails with "is not a decision model". Switch to a decision model to get probabilities and minConfidence.
Complexity scoring (rule-based)
Under the rules, Complexity scoring attaches a decision model and an ordered list of levels (e.g. trivial, easy, hard, expert). The complexityScore signal is the expected level index, so complexityScore ≥ 2 means "probably hard or above". It makes one decision call, only for requests where a rule references the signal.
Press Create Dynamic LLM. The router appears in the model list with a teal dynamic badge in the Type column instead of a category badge.
Pools: cost-aware targets
Anywhere the form asks where to route — a rule, a decider label, or the default — Pool (cost-aware) lets you list several candidate models and a policy that picks one per request. Rules and labels still decide what kind of request this is; the pool only decides which of these equally acceptable models serves it most cheaply.
| Policy | Picks | Use when |
|---|---|---|
| Best under cost cap | The highest-tier candidate whose estimated cost fits Max cost per request. With no cap set, the highest tier. If none fits, the cheapest. | Candidates of different strength — spend on the strong model only when the request is cheap enough. |
| Cheapest | The lowest estimated cost. | Equivalent candidates: the same model on several providers or regions. |
| Token profile (input/output aware) | The lowest expected cost, from the request's predicted output/input ratio, each model's verbosity and its prompt-cache discount. | Mixed traffic where some requests are input-heavy (RAG, summaries, long documents) and others output-heavy (code, long-form writing). |
Tier is a number per candidate, higher = stronger; only Best under cost cap reads it.
How a candidate's cost is estimated:
- Input: estimated input tokens × its input price.
- Output, Best under cost cap and Cheapest:
max_tokenswhen the caller sent it (the worst case), else the model's average output over the last 14 days, else Assumed output tokens. - Output, Token profile: input tokens × the predicted output/input ratio × the model's verbosity. The ratio comes from this conversation's earlier turns, else from recent requests in the same segment (same rule or label, tools or not, structured output or not, similar input size). Verbosity is the model's own output/input ratio relative to the pool's average, so a reasoning model that spends output tokens on hidden thinking is priced as the expensive model it is. The prediction is capped by
max_tokens. - Cache, Token profile only: the model that served this conversation's previous turn is priced with its observed cached-input share at the cached rate; every other candidate at the full input rate. That is the cost of switching, and it is why the policy keeps a conversation on its model unless another is at least Switch margin cheaper.
A candidate is skipped for a request it cannot serve — known lack of tool calling for a request with tools, no image input for a request with images, or a context window smaller than input plus expected output. Only capabilities known to be missing exclude a model; a model with no capability metadata is never skipped. When every candidate is skipped the request goes to the default model, and the reason line says so.
A pool is not a quality decision
Cheapest over a small and a large model always picks the small one. Put models of different strength in separate routes (rules or labels) or use Best under cost cap with tiers; reserve Cheapest for candidates you would accept equally.
Cost guards
Router-wide limits applied after the route and the pool have chosen. A guard only ever moves a request to a cheaper model — the cheapest eligible pool candidate, or the Economy model for a single-model route — and never to one estimated to cost more.
| Field | Effect |
|---|---|
| Max cost per request (USD) | Pools: the cap Best under cost cap fits within. Any route: a request estimated above it is downgraded. |
| Per-conversation budget (USD) | Once a conversation has spent this much through the router (rolling 24 hours), its requests are downgraded. |
| Budget (USD), Window (hours), Downgrade at (%) | Rolling spend limit for the router (window 1–168 hours). From the downgrade threshold on, requests are downgraded. |
| When the budget is exhausted | Keep serving, cheapest model, or Reject (429) with code: "router_budget_exceeded". |
| Economy model | Where a single-model route downgrades to. Without it, a single-model route cannot be downgraded and the guard is only recorded. |
| Conversation stickiness, Switch margin (%) | Token-profile pools keep a conversation on its previous model (prompt cache) unless switching saves at least the margin (default 15%). |
Router spend counts the child and decider calls it caused, priced at their own rates. The counters live in the cache provider: with CACHE_PROVIDER=redis every replica shares one budget; with the in-memory provider each replica counts on its own.
Conversations
Per-conversation budgets, stickiness and canary bucketing need to know which requests belong together. Send an id in metadata — conversationId, conversation_id, sessionId, session_id, threadId or thread_id:
{ "model": "smart-router", "metadata": { "conversationId": "ticket-4711" }, "messages": [ … ] }Without one, the router hashes the opening of the conversation — the caller's user, the system prompt and the first user message — which stays the same as the thread grows. Two unrelated conversations that open identically share that hash, so send an explicit id when you rely on per-conversation budgets. Ids are hashed before they are stored or logged.
Measurement and rollout
| Field | Effect |
|---|---|
| Baseline model | What savings are measured against. Defaults to the default model. |
| Assumed output tokens | Output assumed for estimates when neither max_tokens nor history is available. Defaults to 512. |
| Mode | Enforce, or Shadow (log only): pools and guards are evaluated and recorded, but every route keeps serving its primary model — its single model, or the pool's first candidate. |
| Canary (% of conversations) | In enforce mode, the share of conversations that get the pool and guard decision; the rest run as shadow. A conversation always stays on the same side. |
Roll a new pool or guard out in shadow first, compare on the Routing tab, then raise the canary.
Watch the decisions
Open the router from the model list. A Dynamic LLM's detail page carries a Routing tab that regular models do not have, and no Playground tab — there is no provider runtime to play against.
The top of the tab is Routing analytics for the last 24 hours, 7 days or 30 days:
| Tile / table | Contents |
|---|---|
| Routed requests | Calls the router sent to a child model. |
| Actual spend | Child plus decider spend, at each model's own price. |
| Baseline spend | The same child usage priced at the baseline model. Semantic-cache hits are left out — they cost nothing on any model. |
| Savings vs baseline | Baseline minus actual. Negative when routing costs more, e.g. a decider whose calls cost more than the routing saves. |
| Quality signals | Error rate, and the share of answers cut off by the output limit (finish_reason: length) — the first sign that a route is too cheap. |
| Fallback / guard | Fallback share and the number of guard downgrades. |
| Daily spend vs baseline | The two series per day. |
| By route | Requests, spend, savings, errors and cut-offs per rule, label or default, with the model mix each route ended up on, plus the weighted error of the decision-time cost estimate. |
| By model | Share, spend, output/input ratio, cached-input share, errors and latency per child model. |
| Shadow decisions | In shadow or canary: what was served, what the pool and guards would have chosen, and the estimated saving — both sides compared on decision-time estimates. |
Analytics read the attribution the router writes onto every child and decider row (routing.rolechild / decider, with routerKey, the route, policy, guard and the baseline cost), so the router's own zero-priced decision rows never enter the sums. The same data is available as GET /api/models/:id/routing-analytics?days=7 (1–90).
Below it, the left pane lists recent routing decisions:
| Column | Contents |
|---|---|
| When | Relative timestamp. |
| Routed to | The model key that actually ran. |
| Decision | rule, model, default or fallback, with the matched rule label or decider label appended. fallback renders as a warning badge; a tripped guard and a shadow proposal get their own badges. |
| Reason | The full sentence explaining the choice — this is the column that matters. |
| Latency | Round-trip for the router row. |
Rows are clickable and open the full log entry, which carries the signals that were computed and, for a pool, every candidate's estimate or the reason it was skipped. The right pane restates the live configuration — strategy, default, fallback, mode, every rule or label with its target, and the cost guards — with an Edit routing link. Before any traffic arrives the tab reads "No routing decisions recorded yet. Send a request to this model key to see how it routes."
Router decisions are also visible on the Logs tab, recorded under the route chat.completions.router. A child model's own log entries show Routed by with the router key.
A Total cost alert scoped to a router's key sums the child and decider spend it caused; the router's own rows are priced at zero.
Read the reason column, not the error rate
When the decider call fails, or returns a label you do not recognise, the router does not error. It routes to the default model and writes the explanation into reason — Decider failed (…); used default model or Decider returned an unrecognized label "…"; used default model. The request succeeds, the caller sees nothing unusual, and your error rate stays flat while every request quietly runs on the default model. A router whose decisions are overwhelmingly default is a broken router, not a quiet one.
The same thing over the API
Calling the router
Nothing special — it is a model key on the standard OpenAI-compatible endpoint:
curl -s https://<host>/api/client/v1/chat/completions \
-H "Authorization: Bearer cpeer_…" \
-H "Content-Type: application/json" \
-d '{
"model": "smart-router",
"messages": [{ "role": "user", "content": "Summarise this ticket in one line." }]
}'The response body is the child model's response, passed through untouched. Its model field is therefore the child key, not the router key — that is how a caller learns which model answered. The same holds for streaming chunks.
GET /api/client/v1/models lists routers alongside real models, with owned_by set to dynamic.
Passing your own request_id in the request body makes the router's decision row and the child's usage row share one id, which is the easiest way to correlate them. Without it the router row records the child's id in childRequestId.
Creating a router
POST /api/client/v1/models/dynamic # Bearer cpeer_… token
POST /api/models/dynamic # browser session (what the form uses)Two endpoints, one body
Both take the body below and return 201 {"model": …}. The client endpoint authenticates with Authorization: Bearer cpeer_… and creates the router in the token's project. /api/models/* authenticates with a browser session and the active_project_id cookie — a cpeer_ token cannot drive it. Only the dashboard endpoint checks the project's model quota, returning 429 when it is full.
Body — rule-based:
{
"name": "Smart router",
"key": "smart-router",
"description": "Cheap by default, capable when the request needs it",
"dynamic": {
"strategy": "rule-based",
"defaultModelKey": "gpt-4o-mini",
"fallbackModelKey": "claude-haiku",
"rules": [
{
"label": "complex",
"targetModelKey": "gpt-4o",
"matchType": "all",
"conditions": [
{ "signal": "inputTokensEst", "operator": "gt", "value": 4000 },
{ "signal": "hasTools", "operator": "isTrue" }
]
},
{
"label": "vision",
"targetModelKey": "gpt-4o",
"matchType": "any",
"conditions": [{ "signal": "hasImages", "operator": "isTrue" }]
}
]
}
}Body — model-based:
{
"name": "Intent router",
"dynamic": {
"strategy": "model-based",
"defaultModelKey": "gpt-4o-mini",
"decider": {
"modelKey": "intent-judge",
"minConfidence": 0.7,
"labels": [
{ "label": "simple", "description": "Small talk, short factual questions", "targetModelKey": "gpt-4o-mini" },
{ "label": "complex", "description": "Multi-step reasoning, code, analysis", "targetModelKey": "gpt-4o" }
]
}
}
}Config fields:
| Field | Required | Notes |
|---|---|---|
strategy | yes | rule-based or model-based. |
defaultModelKey | yes | Model key, not an id. |
fallbackModelKey | no | Model key. |
defaultTarget | no | A pool ({ "pool": [...], "policy": ... }) used instead of defaultModelKey when nothing matches. |
rules[] | rule-based | At least one, at most 10. Each needs targetModelKey or target, and 1–5 conditions. matchType defaults to all. |
decider.modelKey | model-based | Required. A decision-category model key (an llm key is accepted only if the router already used it). |
decider.labels[] | model-based | At least one; each needs label and targetModelKey or target. |
decider.promptOverride | no | Replaces the default routing instructions (the labels are always sent as the question's choices). |
decider.minConfidence | no | 0–1. Winning label below it → decider.belowConfidence (or the default target). |
decider.belowConfidence | no | A target ({ "modelKey": … } or a pool) for low-confidence answers. |
complexity | no | { "modelKey": "<decision model>", "levels": ["trivial", …], "instructions": "…" } — 2–255 levels. Backs the complexityScore rule signal. |
…target | no | { "modelKey": "…" }, or { "pool": [{ "modelKey": "…", "tier": 1 }, …], "policy": "best-under-cap" | "cheapest" | "token-profile" } (1–10 candidates, tier 0–100). |
guards | no | maxCostPerRequestUsd, conversationBudgetUsd, budget: { windowHours, limitUsd, downgradeAtPct, onExceeded: "cheapest" | "reject" }, economyModelKey, sticky, switchMarginPct. |
baselineModelKey | no | Defaults to defaultModelKey. |
defaultOutputTokens | no | 1–200000, default 512. |
mode | no | enforce (default) or shadow. |
canaryPercent | no | 0–100, default 100. |
Every model key in the config must exist in the project and be an LLM, and the router may not name itself — otherwise the request fails with 400 Unknown model keys in routing config: ….
A pool rule, for example:
{
"label": "long-context",
"target": {
"pool": [{ "modelKey": "gpt-4o-mini" }, { "modelKey": "claude-haiku" }],
"policy": "token-profile"
},
"conditions": [{ "signal": "inputTokensEst", "operator": "gt", "value": 8000 }]
}Rejections come back as 400 with the failing rule stated — rule-based routing requires at least one rule, every rule needs a targetModelKey, the decider needs at least one label, and so on.
Boolean conditions carry no value; a numeric condition's value is coerced with Number(), so anything that does not parse as a number never matches; a keyword condition's value is the substring or pattern.
Editing a router
PUT /api/client/v1/models/:id { "settings": { "dynamic": { … } } }
PUT /api/models/:id { "settings": { "dynamic": { … } } }settings is merged shallowly, so dynamic is replaced wholesale — send the complete object, not a patch. Both paths run the same validation as create, including the model-key check. The Edit action on a router's detail page, and its Edit routing link, open the same Edit Dynamic LLM form. Edits apply to the next request.
Agents run through the router
An agent can use a Dynamic LLM as its main model or as one of its additional models. Each model call of the run goes through the same resolution as a gateway request, so rules (including caller conditions), the decider, pools, guards and shadow mode all apply, and each turn and step is routed on its own. The caller context of an agent run carries the channel (from the run's source), the agent key, the project, the user (when a real person started it) and the API token id.
Chaining and the depth cap
Routing recurses, with a hard cap of 3. A router resolving to another router increments the depth, and the fourth level throws Dynamic routing depth exceeded (3) resolving model "…". The decider call consumes one level of that depth too.
The form never lets you build a chain — routers are excluded from the target lists — so this only happens through the API. A router that resolves to itself is caught separately: the target is rewritten to the default model, and if the default is the router, the request fails unless a fallback model is configured.
What will bite you
A router prices at zero
A Dynamic LLM is created with inputTokenPer1M, outputTokenPer1M and cachedTokenPer1M all set to 0, and there is no pricing form for it. The cost of a routed request is attributed to the child model, which logs its own usage row at its own prices. Two consequences:
- The router's row mirrors the child's token counts for traffic accounting. Tokens therefore appear twice across the usage rollups — once against the router at zero cost, once against the child at real cost. Cost never doubles; token totals summed across all models do. Filter by model key.
- Project and token budgets are drawn down by the child's realized cost, and by the decider's for model-based routers.
The fallback model only catches throws
fallbackModelKey fires when the chosen child model raises an error — provider outage, bad credentials, unknown model key. A slow answer does not trigger it. A truncated, low-quality or off-topic answer does not trigger it. There is no latency budget and no quality check. If the fallback also throws, the error is logged against the router and propagated to the caller.
| Guardrails bound to the router never run | Routing resolves before any guardrail work, so only the child model's input and output guardrails apply. Bind them there. |
| Semantic cache on the router never runs | Same reason. Enable it on the child models. |
| Agents and routers | Released versions cannot use a router as an agent model. From the next Cognipeer release agent runs route through the router, see Agents run through the router. |
| No Playground tab | There is nothing to invoke locally; exercise the router over the control plane. |
| Streaming rows carry no tokens | For a streaming request the router's decision row is logged with empty usage. The child still logs its own, with the routing attribution, so analytics and alerts are unaffected. |
| History is per replica | The output/input ratios a token-profile pool learns are kept in process memory and start empty after a restart; model averages come from the daily usage rollup and are shared. |
| An invalid regex is silently false | A matches (regex) condition with a broken pattern evaluates to false rather than raising. |
| Rules are ordered | First match wins, and a broad rule placed first makes everything below it dead. |
| Evaluation targets work | An evaluation target pointing at a router runs through the control plane path and routes normally, so you can A/B a router against a fixed model on the same dataset. |
Where to go next
- How to optimize token usage — measure first, then decide what to split off onto a cheaper model
- Model Hub — models, keys and pricing
- Model Inference — the control plane, honoured parameters and error shapes
- Evaluation & Analysis — proving the cheap model is good enough before you route traffic to it

