mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* fix(complexity_router): cap the llm classifier's output tokens The llm classifier sent its call with no output limit. Amazon Bedrock reserves input tokens plus the requested limit against the token quota when a request starts, and an unset limit means the model's maximum, so every routed request reserved the classifier model's full output limit for a reply of a few tokens. Under load that throttled the classifier deployment with "Too many tokens". classifier_llm_config.max_output_tokens (default 4096, the capability classifier's default) is now sent on every llm classifier call, and the dashboard keeps the value when it saves a router. * test(complexity-router): cover classifier caps and preserve custom tier limits * fix(complexity-router): make classifier output cap opt-in * fix(complexity-router): prioritize explicit classifier output limits * feat(dashboard): expose classifier output token limit --------- Co-authored-by: spencer-burridge <265588760+spencer-burridge@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| adaptive_router | ||
| complexity_router | ||
| switchyard_router | ||
| __init__.py | ||
| test_auto_router.py | ||
| test_auto_router_model_naming.py | ||
| test_auto_router_tuning_baseline.py | ||
| test_base_routing_strategy.py | ||
| test_baseline_request.py | ||
| test_budget_limiter.py | ||
| test_budget_limiter_hotpath.py | ||
| test_complexity_router.py | ||
| test_complexity_tier_predictor.py | ||
| test_fuse_presets.py | ||
| test_lar1_routing.py | ||
| test_least_busy.py | ||
| test_litellm_encoder.py | ||
| test_llm_v2.py | ||
| test_lowest_cost.py | ||
| test_lowest_latency.py | ||
| test_lowest_tpm_rpm.py | ||
| test_lowest_tpm_rpm_v2.py | ||
| test_quality_router.py | ||
| test_router_routing_groups.py | ||
| test_router_routing_plugins.py | ||
| test_router_tag_regex_routing.py | ||
| test_router_tag_routing.py | ||
| test_savings_baseline.py | ||
| test_simple_shuffle.py | ||
| test_stall_detector.py | ||