| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-04-22 | 564 Bytes | |
| v0.5.0 -- success callback hook source code.tar.gz | 2026-04-22 | 293.1 kB | |
| v0.5.0 -- success callback hook source code.zip | 2026-04-22 | 315.2 kB | |
| Totals: 3 Items | 608.9 kB | 0 | |
success_callbacks
New observability hook: append to litelm.success_callbacks to receive per-completion telemetry (model, provider, response, latency_ms). Fires for both completion and acompletion on every non-streaming success path (mock, custom-handler, direct-SDK).
Matches litellm's success_callback shape so existing integrations port directly. Exceptions raised by observers are logged and swallowed.
Streaming callbacks are out of scope for this release — usage data only lands in the final chunk.
See [#12] and [#13] for design + rationale.