Download Latest Version v0.5.2 -- upstream attestation and dependency refresh source code.zip (340.9 kB) Google Add to Preferred Sources
Home / v0.5.0
Name Modified Size InfoDownloads / 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.

Source: README.md, updated 2026-04-22