mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
async_pre_call_deployment_hook, async_post_call_success_deployment_hook and async_post_call_failure_deployment_hook run on every SDK call, not only on the proxy, and the native OCR path still delegated them to the Python chain in litellm.utils. DeploymentBody now iterates litellm.callbacks through CallbackFamily::Deployment* with Delivery::Await, chaining the replaced kwargs or response through each CustomLogger and containing failure-hook errors per target while pre and post hook errors propagate. Runner::invoke returns an error when an awaited leaf yields a non-awaitable instead of guessing from is_none. The legacy-disabled test registers a deployment hook and forbids the three utils entry points. |
||
|---|---|---|
| .. | ||
| ocr | ||
| support | ||
| conftest.py | ||
| test_ocr.py | ||