mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
Router.update_settings() silently dropped default_litellm_params and optional_pre_call_checks (not in the allow-list, and optional_pre_call_checks was never even stored as a readable attribute), so the Admin UI's Router Settings page could not display or persist either setting - e.g. enabling cache_control_injection_points or prompt_caching pre-call routing required editing config.yaml directly. Router now persists optional_pre_call_checks and returns both fields from get_settings(). update_settings() merges default_litellm_params instead of replacing it (a full replace would drop the timeout/max_retries/metadata defaults Router.__init__ sets), and diffs optional_pre_call_checks against what's already applied before calling add_optional_pre_call_checks(), since that method has no dedup guard for prompt_caching/enforce_model_rate_limits and would otherwise register a duplicate callback on every re-save. |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||