Python / AI Developer, Independent
Shipped: llm-router: cheaper LLM answers at equal accuracy
Sends each question to the cheapest model that can answer it, and skips the model when the same question was already answered. Explainable difficulty rules, a cascade with escalation and fallback, and a semantic cache that never mixes up numbers.
Measured on 40 questions with local models, tokens priced at Anthropic list prices: the rules kept the same 100% accuracy as always using the large model at 58% lower cost. The cache answered 14 of 15 reworded questions and was fooled by 0 of 5 number traps.
llm-routingsemantic-cachellmopscostopen-source






Comments
0 comments