litellm/litellm-rust/crates/callbacks-legacy-python/src
Nate Armstrong 6a4aab41f0
fix(messages): bill a native stream the client abandoned like python (#50425)
When the client disconnects mid-stream, the native adapter now logs success for the chunks it delivered before teardown, so spend, SpendLogs and the key's budget and tpm reservations settle the same way they do on the Python path

The proxy records a client disconnect, with its 499 error information, in the stream generator's cleanup. The native teardown billed the stream before that cleanup, so the row had empty error information. A proxy stream torn down by cancellation now bills from the task's done callback, after the disconnect is recorded
2026-11-10 00:24:21 +00:00
..
adapter.rs fix(messages): bill a native stream the client abandoned like python (#50425) 2026-11-10 00:24:21 +00:00
call.rs refactor(python-bridge): take NativeCall directly and fold routes into per-route folders (#45413) 2026-10-08 13:48:28 -07:00
callbacks.rs fix(messages): log native messages request fields like python (#50421) 2026-11-10 00:24:19 +00:00
deferred.rs fix(messages): log native messages success once, after the proxy releases it (#50420) 2026-11-09 16:06:53 -08:00
error.rs refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00
lib.rs refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00
logger.rs refactor(rust): rename legacy callback adapter crate 2026-09-19 23:06:26 +00:00
mapping.rs refactor(anthropic): rename llms/anthropic/pass_through to llms/anthropic/messages (#48510) 2026-10-27 10:08:25 -07:00
python.rs fix(messages): log native messages request fields like python (#50421) 2026-11-10 00:24:19 +00:00
test_support.rs fix(messages): bill a native stream the client abandoned like python (#50425) 2026-11-10 00:24:21 +00:00