mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
Adds a top-level classifier_plugins config key mapping names to dotted paths, resolved at startup into litellm.classifier_plugin_registry with the same load-time checks classifier_plugin already gets. A before-validator on ComplexityRouterConfig.classifier_plugin resolves string values through the registry, so the save-time write gate, router deployment init, and direct construction all accept a registered name and reject an unknown one with a clean error; DB-stored auto-routers therefore carry plain names and no proxy read path changes. GET /auto_router/classifier_plugins lists the names. The dashboard's classification method picker gains a Custom classifier option with a plugin dropdown fed by that endpoint, a plugin timeout field, and the fallback picker now shown for both non-heuristic modes. Create and edit serialize and validate identically, the models table labels custom routers correctly, and the routing decision card names the classifier_plugin cause and stops implying the LLM classifier failed on plugin fallbacks |
||
|---|---|---|
| .. | ||
| pre_call_checks | ||
| test_add_retry_fallback_headers.py | ||
| test_auto_router_model_naming.py | ||
| test_cooldown_cache.py | ||
| test_cooldown_handlers.py | ||
| test_fallback_event_handlers.py | ||
| test_health_check_allowed_fails_integration.py | ||
| test_health_state_cache.py | ||
| test_router_health_check_routing.py | ||
| test_router_interactions_endpoints.py | ||
| test_router_utils_common_utils.py | ||