mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-07 19:03:17 +00:00
ffc6af3f2f
Add cheap .get() guards in should_run_callback() to short-circuit the expensive EnterpriseCallbackControls.is_callback_disabled_dynamically() call. When neither litellm_disabled_callbacks nor x-litellm-disable-callbacks header is set (the common case), the enterprise function is never entered, reducing should_run_callback from ~485ms to ~93-165ms across 54k calls.
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.