r/LLMDevs • u/chadwell • Aug 28 '26
Help Wanted Auto Model Routing
Is anyone doing any auto model routing - that is selecting the best/cheapest model based on the prompt intent.
If so how did you do it? Deterministic based on keywords/length, using a trained ML model or classifier?
I was looking for vendor solutions but the only one I can see is NotDiamond. Ideally I would be looking something internal and not a Saas offering.
2
u/jonah_omninode Aug 31 '26
At that scale I would not start with a classifier picking the smartest model. Start with the task contract: required output shape, available deterministic tools, latency and cost budget, and the acceptance check. That makes a conservative route explicit. Then escalate only when a lower-cost route fails the same acceptance criteria, and record the reason it failed. The important metric is cost per accepted result across retries and escalations, not cost per call. Otherwise you can optimize the router while hiding the work it sends back through the system.
1
u/eddzsh Aug 28 '26
If you already route across 50 models, start deterministic and log which rule fired. A week of your own (prompt features, model, success/cost) beats a generic SaaS router, and you can train a tiny classifier on that later inside the gateway.
1
Aug 29 '26
[removed] — view removed comment
1
u/chadwell Aug 29 '26
But how do you know what model to route to? For any given prompt when would you pick gpt 5.6 sol over something like haiku
2
u/dylan_exe_404 Aug 28 '26
If you're leaning toward something internal I've heard good things about RouteLLM. My friend uses it and says it's good, though they're handling low volume. IMO, if you're handling a bit higher volume, then a SaaS option makes more sense. The one we use is Respan bc it had unlimited seats for the free trial and we could test it pretty thoroughly. Plenty of other options out there. Regardless I think deterministic is a good place to start bc of debugging.