mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-16 04:29:31 +00:00
* fix(proxy): build configured logging callbacks at boot so a broken callback fails startup instead of the first request Startup already built every configured callbacks, success_callback and failure_callback entry, but through the per-request helper that swallows every construction error. A callback whose SDK could not be imported (for example langfuse outside the supported version range) stayed a string, so the first request on each worker rebuilt it inside function_setup and returned a 500. Startup now builds them with a variant that re-raises ImportError naming the callback, which fails boot. Other construction errors keep the old non-blocking behavior, and callbacks added at runtime keep the lenient path. * refactor(proxy): build the configured callback replacements in one pass Collect the startup-built callbacks with a generator and a frozen mapping instead of a mutable dict filled in a loop, and drop a docstring that restated the function body --------- Co-authored-by: yuneng-jiang <yuneng@berri.ai> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _harness_smoke_test.py | ||
| conftest.py | ||
| test_alerting.py | ||
| test_callback_capabilities_class.py | ||
| test_callback_capabilities_dataclass.py | ||
| test_during_call_hook.py | ||
| test_guardrail_pipeline.py | ||
| test_internal_usage_cache.py | ||
| test_lifecycle.py | ||
| test_mcp_bridging.py | ||
| test_module_helpers.py | ||
| test_post_call_failure_hook.py | ||
| test_post_call_success_hook.py | ||
| test_pre_call_hook.py | ||
| test_streaming_hooks.py | ||