fix(litellm): route omniroute through auto/smart instead of bare auto - #4325
Conversation
Bare "auto" classifies our review-shaped payloads as intent=medium / task=default and picks via the sticky lkgp (last-known-good-provider) strategy — same free provider every time it last worked, not necessarily the best one currently available. auto/smart forces OmniRoute's RulesStrategy scorer (quota/health/cost/taskFit) on every request instead.
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| JavaScript | Aug 3, 2026 9:32p.m. | Review ↗ | |
| Shell | Aug 3, 2026 9:32p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
493e522 to
9d86c33
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
📝 WalkthroughWalkthroughThe LiteLLM OmniRoute model now uses ChangesOmniRoute routing
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
@@ spec.params.model @@
# litellm.home-operations.com/v1alpha1/LiteLLMModel/ai/omniroute
! ± value change
- openai/auto
+ openai/auto/smart
|
AI Automated ReviewAnalysis engine: omniroute@http://litellm.ai.svc.cluster.local/v1 (openai) Recommendation: ApproveThis PR makes a targeted, well-justified change to the OmniRoute model configuration in LiteLLM, switching from Change-by-Change FindingsFile:
The change is minimal (3 additions, 4 deletions) and focused on a single configuration value. The PR body provides direct empirical evidence from testing against the OmniRoute service showing:
Standards Compliance
Tool Harness FindingsTool harness planning pending; no findings to review. Unknowns or Needs Verification
SummaryThe change is correct, well-evidenced, and follows repository conventions. The behavioral improvement (live quality scoring vs. sticky provider selection) aligns with the intent of making OmniRoute the primary reviewer model with intelligent fallback. Approve. |
Summary
Bare
autoclassifies review-shaped payloads asintent=medium / task=defaultand selects via OmniRoute's stickylkgp(last-known-good-provider) strategy — the same free provider every time it last succeeded, regardless of whether a better one is currently available.auto/smartis a distinct OmniRoute model id that forces itsRulesStrategylive scorer (quota/health/cost/taskFit) on every request instead.Evidence
Direct test against omniroute:
model: auto→Auto selection: opencode/big-pickle | strategy=lkgp | LKGP: using last known good provider opencode(no scoring, pure stickiness)model: auto/smart→Auto selection: kimi-coding/k3 | RulesStrategy: score=0.828 (quota=1.00, health=1.00, cost=1.00, taskFit=0.85)(live quality scoring)Test plan
kustomize build kubernetes/apps/ai/litellm/instanceclean,model: openai/auto/smartpresentRulesStrategyscoring (notlkgp) for real litellm callsSummary by CodeRabbit