---
title: "Model routing reference"
manual: "LLM Foundation"
version: "main"
permalink: "https://docs.typo3.org/permalink/netresearch/nr-llm:routing-reference@main"
source: "Configuration/Routing.rst"
rendered: "2026-11-12T15:41:35+00:00"
---

# Model routing reference {#routing-reference}

Fixed configurations name a model. Criteria configurations resolve an eligible
model for the requested operation. Capability, provider activity, context and
price criteria exclude candidates before ranking. An operator's provider
priority is compared before measured scores; a measured score cannot overturn
that explicit priority.

| Mode | Quality | Health | Cost | Latency |
| --- | --- | --- | --- | --- |
| `providerPriority` (default) | 0 | 0 | 0 | 0 |
| `balanced` | 0.4 | 0.4 | 0.2 | 0.1 |
| `quality` | 0.7 | 0.3 | 0 | 0.05 |
| `economy` | 0.1 | 0.3 | 0.6 | 0.05 |

These are weights, not percentages of all requests. Absolute signals with no
measurement are skipped and the score is normalized over available weights.
Relative call-history signals use a neutral midpoint for missing data. Cost
participates in economy mode and where criteria request it; quality mode's
zero cost weight leaves cost preference as a tie-breaker.

## Call history and quality selection {#routing-reference-history}

`routing.callHistory` defaults to off. When enabled, known per-operation
latency and call cost can affect measured modes. Cost history replaces listed
cost for the decision when applicable; it is not added a second time. Relative
signals need a meaningful difference between candidate observations. They
reflect the traffic each model received, not an unbiased comparison trial.

Quality routing requires a deterministic completion benchmark and explicit
`routing.qualitySet` and `routing.qualityFingerprint` selections. Run the
benchmark, inspect its printed fingerprint and results, then configure that
exact set/revision. Decision-graded runs retain scores and reported grader
series, but currently have no verified comparable completion-benchmark
revision. Re-evaluation alone does not select a routing benchmark.

The readout's **signals used** means a positively weighted measured signal
contributed to scoring. It does not show that the winner would change without
that signal. Structural complexity, payload shape and token estimates remain
diagnostic; they do not adapt model choice by themselves.

Criteria-mode pricing uses the model actually resolved for the call, without
mutating the stored configuration. Unknown cost is distinct from a provider
reported zero. See [Usage analytics](https://docs.typo3.org/permalink/netresearch/nr-llm:administration-analytics@main) and
[Quality evaluation](https://docs.typo3.org/permalink/netresearch/nr-llm:developer-quality-evaluation@main) for measurement and evaluation limits.
