How Routing Works
Wildcard Routing
TrustGate uses LiteLLM with wildcard routing (provider/* patterns). Any model from a configured provider works instantly without configuration changes. When a provider releases a new model, it is available immediately.
Model Name Resolution
The model router resolves names in this order:- Passport lookup — checks
api_model_idin passport metadata (preferred) - Prefixed names —
openai/gpt-4.1routes directly to the OpenAI provider - Backward-compat aliases — unprefixed names like
gpt-4omap toopenai/gpt-4o
Availability Filtering
The/v1/models endpoint supports a tri-state availability filter:
For API-format models (hosted providers), availability is always
true. For self-hosted models (safetensors, gguf), availability requires at least one healthy compute node with compatible runtime, sufficient VRAM, and a recent heartbeat (within 30s).
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=8b4c7e6431e9a6af1ef23b77bb4ff5fd)
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=d5651a45e4bfbabc33f74e146af3f94a)