mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
When a client leaves a native /v1/responses stream, keep reading the provider's stream to its terminal event so the spend log carries the provider's own usage (reasoning tokens and the cached split included), including when the client left before any output. cancel_on_disconnect keeps cancelling the upstream call
Resolves LIT-10916
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| test_api_docs.py | ||
| test_circular_imports.py | ||
| test_env_keys.py | ||
| test_exception_types.py | ||
| test_general_setting_keys.py | ||
| test_optional_params.py | ||
| test_readme_providers.py | ||
| test_requests_lib_usage.py | ||
| test_router_settings.py | ||
| test_standard_logging_payload.py | ||