mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
update_settings(optional_pre_call_checks=...) only ever unioned incoming checks into self.optional_pre_call_checks - it never removed anything absent from the incoming list. Unchecking a check in the Admin UI's new multi-select and clicking Save silently did nothing live: the DB got the smaller list, but the router kept the old value and its registered callback (e.g. PromptCachingDeploymentCheck, RouterBudgetLimiting) active until a restart, diverging from what the UI showed as saved. _remove_optional_pre_call_checks mirrors add_optional_pre_call_checks for the removal direction: clears the relevant flag on the shared DeploymentAffinityCheck / EncryptedContentAffinityCheck instance for the affinity-based checks, and unregisters the dedicated callback (via the existing logging_callback_manager.remove_callbacks_by_type) for prompt_caching, enforce_model_rate_limits, and router_budget_limiting. optional_pre_call_checks is now set to exactly the incoming list rather than a strictly-growing union. |
||
|---|---|---|
| .. | ||
| azure_client_usage_test.py | ||
| ban_constant_numbers.py | ||
| ban_copy_deepcopy_kwargs.py | ||
| bedrock_pricing.py | ||
| callback_manager_test.py | ||
| check_data_replace_usage.py | ||
| check_endpoint_coverage.py | ||
| check_fastuuid_usage.py | ||
| check_get_model_cost_key_performance.py | ||
| check_guardrail_apply_decorator.py | ||
| check_licenses.py | ||
| check_provider_folders_documented.py | ||
| check_spanattributes_value_usage.py | ||
| check_unsafe_enterprise_import.py | ||
| code_qa_check_tests.py | ||
| enforce_llms_folder_style.py | ||
| ensure_async_clients_test.py | ||
| info_log_check.py | ||
| liccheck.ini | ||
| license_cache.json | ||
| litellm_logging_code_coverage.py | ||
| log.txt | ||
| memory_test.py | ||
| pass_through_code_coverage.py | ||
| prevent_key_leaks_in_exceptions.py | ||
| recursive_detector.py | ||
| router_code_coverage.py | ||
| router_enforce_line_length.py | ||
| test_aio_http_image_conversion.py | ||
| test_ban_set_verbose.py | ||
| test_chat_completion_imports.py | ||
| test_proxy_types_import.py | ||
| test_router_strategy_async.py | ||
| user_api_key_auth_code_coverage.py | ||