litellm/tests/documentation_tests
mateo 3775e7b004 fix(responses): bill a client-cancelled native Responses stream with the usage the provider reports
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 9bdb3180fd)
2026-11-26 22:49:07 +00:00
..
test_api_docs.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_circular_imports.py Litellm remove circular imports (#7232) 2024-12-14 16:28:34 -08:00
test_env_keys.py fix(responses): bill a client-cancelled native Responses stream with the usage the provider reports 2026-11-26 22:49:07 +00:00
test_exception_types.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_general_setting_keys.py [Fix] Scope documentation workflow to match CircleCI and add missing router settings 2026-03-28 11:23:53 -07:00
test_optional_params.py Litellm dev 12 28 2024 p1 (#7463) 2024-12-28 20:26:00 -08:00
test_readme_providers.py feat(vector_stores): add Valkey as a managed vector store provider (#37002) 2026-08-18 21:45:22 +00:00
test_requests_lib_usage.py LITELLM: Remove requests library usage (#7235) 2024-12-17 12:50:04 -08:00
test_router_settings.py test(docs): read only the first column of the router_settings reference table 2026-09-18 19:11:39 +00:00
test_standard_logging_payload.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00