From 1d09cf133224ebea7da985813f64edced0213bd4 Mon Sep 17 00:00:00 2001 From: Tin Chi Lo Date: Tue, 15 Sep 2026 12:39:54 -0700 Subject: [PATCH] refactor(router): simplify LLM classifier membership check --- .../src/components/add_model/ComplexityRouterConfig.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/litellm-dashboard/src/components/add_model/ComplexityRouterConfig.tsx b/ui/litellm-dashboard/src/components/add_model/ComplexityRouterConfig.tsx index b70c0d0bc0f..ce9d0ed1bed 100644 --- a/ui/litellm-dashboard/src/components/add_model/ComplexityRouterConfig.tsx +++ b/ui/litellm-dashboard/src/components/add_model/ComplexityRouterConfig.tsx @@ -151,10 +151,7 @@ export type ClassifierType = "heuristic" | "heuristic_v2" | "llm" | "llm_v2" | " * control and payload key, so a new chaining type cannot strip knobs the operator set. */ export const usesLlmClassifier = (classifierType: ClassifierType): boolean => - classifierType === "llm" || - classifierType === "llm_v2" || - classifierType === "heuristic_first" || - classifierType === "hybrid"; + ["llm", "llm_v2", "heuristic_first", "hybrid"].includes(classifierType); export type ClassifierFallback = "heuristic" | "default_model";