diff --git a/ui/litellm-dashboard/src/autorouter_presets.json b/ui/litellm-dashboard/src/autorouter_presets.json
index ec9cfe1eac4..2603d7f5324 100644
--- a/ui/litellm-dashboard/src/autorouter_presets.json
+++ b/ui/litellm-dashboard/src/autorouter_presets.json
@@ -10,7 +10,8 @@
"REASONING": ["claude-opus-5"]
},
"classifier_type": "heuristic",
- "escalation_keywords": ["LITELLM ESCALATE"]
+ "escalation_keywords": ["LITELLM ESCALATE"],
+ "session_affinity": false
}
},
"openai_family": {
@@ -24,7 +25,8 @@
"REASONING": ["o3"]
},
"classifier_type": "heuristic",
- "escalation_keywords": ["LITELLM ESCALATE"]
+ "escalation_keywords": ["LITELLM ESCALATE"],
+ "session_affinity": false
}
}
}
diff --git a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.test.tsx b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.test.tsx
index 5ea9e9de3fd..efb46736ea5 100644
--- a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.test.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.test.tsx
@@ -387,6 +387,8 @@ describe("AddAutoRouterTab", () => {
renderWithProviders();
+ openTemplateDropdown();
+ fireEvent.click(optionByLabel("Custom Configuration")!);
await user.type(screen.getByPlaceholderText(/smart_router/i), "affinity-router");
await user.click(screen.getByText("Advanced: Session Affinity"));
expect(await screen.findByRole("switch", { name: "Pin a session to its first model" })).not.toBeChecked();
@@ -405,6 +407,8 @@ describe("AddAutoRouterTab", () => {
renderWithProviders();
+ openTemplateDropdown();
+ fireEvent.click(optionByLabel("Custom Configuration")!);
await user.type(screen.getByPlaceholderText(/smart_router/i), "affinity-router");
await user.click(screen.getByText("Advanced: Session Affinity"));
await user.click(await screen.findByRole("switch", { name: "Pin a session to its first model" }));