mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
refactor(router): simplify LLM classifier membership check
This commit is contained in:
parent
d99da0d881
commit
1d09cf1332
1 changed files with 1 additions and 4 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue