diff --git a/ui/litellm-dashboard/src/components/router_settings/index.test.tsx b/ui/litellm-dashboard/src/components/router_settings/index.test.tsx index 658f7ec83d2..78a0b4b0dff 100644 --- a/ui/litellm-dashboard/src/components/router_settings/index.test.tsx +++ b/ui/litellm-dashboard/src/components/router_settings/index.test.tsx @@ -34,7 +34,6 @@ const mockCallbacksResponse = { routing_strategy: "simple-shuffle", num_retries: 3, timeout: 30, - routing_groups: [], }, }; @@ -135,34 +134,6 @@ describe("RouterSettings", () => { ); }); - it("should send routing_groups as a list when saving load balancing settings", async () => { - const user = userEvent.setup(); - renderWithProviders(); - - await waitFor(() => { - expect(screen.getByRole("textbox", { name: /routing_groups/i })).toBeInTheDocument(); - }); - - await user.click(screen.getByRole("button", { name: /save changes/i })); - - expect(setCallbacksCall).toHaveBeenCalledWith( - "test-token", - expect.objectContaining({ - router_settings: expect.objectContaining({ - routing_groups: [], - }), - }), - ); - expect(setCallbacksCall).not.toHaveBeenCalledWith( - "test-token", - expect.objectContaining({ - router_settings: expect.objectContaining({ - routing_groups: "[]", - }), - }), - ); - }); - it("should show a success notification after saving", async () => { const user = userEvent.setup(); renderWithProviders(); diff --git a/ui/litellm-dashboard/src/components/router_settings/index.tsx b/ui/litellm-dashboard/src/components/router_settings/index.tsx index b567f2af1ee..7cd59ab1bf6 100644 --- a/ui/litellm-dashboard/src/components/router_settings/index.tsx +++ b/ui/litellm-dashboard/src/components/router_settings/index.tsx @@ -91,7 +91,7 @@ const RouterSettings: React.FC = ({ accessToken, userRole, console.log("router_settings", router_settings); const numberKeys = new Set(["allowed_fails", "cooldown_time", "num_retries", "timeout", "retry_after"]); - const jsonKeys = new Set(["model_group_alias", "retry_policy", "routing_groups"]); + const jsonKeys = new Set(["model_group_alias", "retry_policy"]); const parseInputValue = (key: string, raw: string | undefined, fallback: unknown) => { if (raw === undefined) return fallback;