litellm/tests/test_litellm_rust/messages
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
..
__init__.py add streaming message 2026-09-18 15:45:08 -07:00
conftest.py test(rust-bridge): select native routes per test without LITELLM_RUST (#46620) 2026-10-15 09:12:08 -07:00
data.py test(rust-bridge): select native routes per test without LITELLM_RUST (#46620) 2026-10-15 09:12:08 -07:00
test_body_hooks.py refactor(anthropic): rename llms/anthropic/pass_through to llms/anthropic/messages (#48510) 2026-10-27 10:08:25 -07:00
test_callbacks.py fix(messages): pass non-message bodies through and refuse non-string headers as bad requests (#50422) 2026-11-10 00:24:20 +00:00
test_dispatch.py fix(messages): let proxy /v1/messages requests run on the rust path (#50335) 2026-11-09 16:06:52 -08:00
test_requests.py fix(messages): pass non-message bodies through and refuse non-string headers as bad requests (#50422) 2026-11-10 00:24:20 +00:00
test_streaming.py fix(messages): bill a native stream the client abandoned like python (#50425) 2026-11-10 00:24:21 +00:00