+ {showPreferences && (
+ <>
+
+
+
+ {Object.entries(ROUTER_GOALS).map(([key, label]) => (
+
+ ))}
+
+
+
+
+
+
+ >
+ )}
+ {waitingForTeam &&
Select a team to see available models.
}
+ {!waitingForTeam && loading && (
+
+
+ Loading deployed models
+
+ )}
+ {inventoryReady && error && (
+
+ Could not load deployed models.{" "}
+
+
+ )}
+ {inventoryReady && !error && (
+ <>
+
+
+
+ {customized && hasSuggestions && (
+
+ )}
+
+
+ {(["everyday", "hard"] as const).map((role) => {
+ const chosen = role === "everyday" ? everyday : hard;
+ const other = role === "everyday" ? hard : everyday;
+ const choices = models.filter((model) => model.name !== other?.name);
+ const items = choices.map((model) => ({ value: model.name, label: model.name }));
+ const label = role === "everyday" ? "Everyday" : "Hard tasks";
+ return (
+
+
+
+
+ {role === "everyday" ? "Your cheaper model" : "Your stronger model"}
+
+
+
+ {chosen &&
{modelDescription(chosen)}
}
+
+ );
+ })}
+
+
+ {(!everyday || !hard) && (
+
+ {models.length < 2
+ ? "Two deployed models are needed. Add a model or use Advanced configuration."
+ : "Choose two models to get started."}
+
+ )}
+ {notice && !customized && (
+
+ {notice}
+
+ )}
+ >
+ )}
+
+
+ );
+}
diff --git a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.integration.test.tsx b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.integration.test.tsx
index ee9cbe3c480..52c4e9093a4 100644
--- a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.integration.test.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.integration.test.tsx
@@ -1,3 +1,4 @@
+import { autoRouterListKey } from "@/app/(dashboard)/hooks/models/useModels";
import { normalizeTierModels } from "./complexity_router_tiers";
import {
openAutoRouterAdvanced,
@@ -174,6 +175,12 @@ vi.mock("../common_components/team_dropdown", () => ({
),
}));
+const renderAdvanced: typeof renderWithProviders = (...args) => {
+ const result = renderWithProviders(...args);
+ fireEvent.click(screen.getByRole("button", { name: "Advanced configuration", exact: true }));
+ return result;
+};
+
const Harness = () =>