senn-techsenn-tech
KI & Entwicklung
KI & Entwicklung2026-08-21· By Franz Senn

Self-Hosted LiteLLM Gateway: Two Lanes Instead of a Wildcard

Our local LiteLLM gateway was consolidated on 19 August. There is no longer a wildcard fallback lane; instead there are only explicit routes: thinking/nothink on the 4× RTX 5090 host and hermes on the single-card box. Unknown model names now fail loudly instead of being silently rerouted.

Gateway routing after consolidationClient / LibreChat192.168.180.2:4000Auto-router4000→4001LiteLLMCheck lanesthinking/nothink.3 Qwen3.8-27Bhermes.202 single-card boxembed/rerank.211
After consolidation, every request lands in a defined lane. (Quelle: Own infrastructure)

Two lanes instead of one wildcard

LaneHostPortModel / formatPurpose
thinking / nothink192.168.180.38080Qwen3.8-27B-FP8Reasoning and standard prompts on the 4× RTX 5090 host
hermes192.168.180.2028080Qwen3.8-27B-AWQ-INT4Coding assistant on the single-card box

Vision aliases were also moved to the .3 host, so image processing and text generation sit on the same GPU group.

MCPs and hooks

Behind the gateway sit the local Model Context Providers: docling, excel, erp_lookup, browser_eyes, grounded_docs, searxng, weather, and crawl4ai. Two hooks sit inline: a guard_hook for content checks and an OCR hook for documents.

What actually changed

  • Wildcard removed: No * fallback; unknown model names now return an error.
  • Vision consolidated: Image endpoints point to .3 instead of scattered cards.
  • Explicit lanes: thinking/nothink and hermes are split technically and semantically.
  • Hooks active: guard_hook and the OCR hook run on every pass-through.

Takeaway

A wildcard gateway is convenient but opaque. Consolidation makes behavior predictable: every client request must deliberately fit a lane. That adds configuration work, but it prevents silently serving the wrong model.

Further reading

Questions?
Why was the wildcard lane removed?+

A star-shaped fallback used to catch every unknown model name. That hid typos in client configs and silently served a different model. Since 19 August the gateway rejects unknown names outright — every request must map to a defined lane.

What is the difference between the thinking/nothink and hermes lanes?+

thinking and nothink route to the 4× RTX 5090 host (192.168.180.3) running Qwen3.8-27B-FP8. They cover reasoning-heavy and standard prompts on the same hardware. hermes runs on the single-card box (192.168.180.202) as Qwen3.8-27B-AWQ-INT4 and is tuned as a coding assistant.

What does 192.168.180.211 do in this setup?+

That machine hosts the embedding and rerank endpoints on ports 8010 and 8011, keeping retrieval and reranking separate from the generation GPUs.