From 8beca1d58d4fa28020b16d672b2b7dc0b8e88ce3 Mon Sep 17 00:00:00 2001 From: tin-berri Date: Fri, 4 Sep 2026 13:33:06 -0700 Subject: [PATCH] fix(auto-router): route 1M complex tier to GPT Sol (#39797) * feat(ui): add 1M context auto-router preset * feat(ui): use heuristic v2 for 1M preset * fix(ui): keep 1M preset test within lint budget * fix(auto-router): route 1M complex tier to GPT Sol * test(auto-router): update 1M complex tier expectation --- litellm/proxy/public_endpoints/autorouter_presets.json | 4 ++-- .../proxy/public_endpoints/test_public_endpoints.py | 2 +- ui/litellm-dashboard/src/lib/autorouter_presets.test.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/litellm/proxy/public_endpoints/autorouter_presets.json b/litellm/proxy/public_endpoints/autorouter_presets.json index 6a6642d4211..7d09db31127 100644 --- a/litellm/proxy/public_endpoints/autorouter_presets.json +++ b/litellm/proxy/public_endpoints/autorouter_presets.json @@ -1,12 +1,12 @@ { "1m_context": { "label": "1M Context", - "description": "Routes across models with 1M-token context windows: Luna for simple queries, Terra for medium, Opus 5 for complex, Opus 5 at high thinking for reasoning.", + "description": "Routes across models with 1M-token context windows: Luna for simple queries, Terra for medium, Sol for complex, Opus 5 at high thinking for reasoning.", "complexity_router_config": { "tiers": { "SIMPLE": ["gpt-5.6-luna"], "MEDIUM": ["gpt-5.6-terra"], - "COMPLEX": ["claude-opus-5"], + "COMPLEX": ["gpt-5.6-sol"], "REASONING": ["claude-opus-5"] }, "tier_model_configs": { diff --git a/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py b/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py index 41439f28638..4a19ad3541c 100644 --- a/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py +++ b/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py @@ -1108,7 +1108,7 @@ def test_get_autorouter_presets_local_mode_serves_bundled_catalog( assert payload["1m_context"]["complexity_router_config"]["tiers"] == { "SIMPLE": ["gpt-5.6-luna"], "MEDIUM": ["gpt-5.6-terra"], - "COMPLEX": ["claude-opus-5"], + "COMPLEX": ["gpt-5.6-sol"], "REASONING": ["claude-opus-5"], } assert payload["1m_context"]["complexity_router_config"]["tier_model_configs"] == { diff --git a/ui/litellm-dashboard/src/lib/autorouter_presets.test.ts b/ui/litellm-dashboard/src/lib/autorouter_presets.test.ts index ffede7b2a6b..344964c4434 100644 --- a/ui/litellm-dashboard/src/lib/autorouter_presets.test.ts +++ b/ui/litellm-dashboard/src/lib/autorouter_presets.test.ts @@ -217,12 +217,12 @@ describe("autorouter_presets", () => { }); }); - it("pins the 1M context preset to Luna, Terra, and Opus at high thinking", () => { + it("pins the 1M context preset to Luna, Terra, Sol, and Opus at high thinking", () => { const preset = getPresetByKey("1m_context")!; const expectedTiers = { SIMPLE: ["gpt-5.6-luna"], MEDIUM: ["gpt-5.6-terra"], - COMPLEX: ["claude-opus-5"], + COMPLEX: ["gpt-5.6-sol"], REASONING: ["claude-opus-5"], }; expect(preset.complexity_router_config.classifier_type).toBe("heuristic_v2");