mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
Follow-up to #51318. The detached stream failure hook lives on the logging object, so it must not hold that object (#51277). Instead of a weakref, Logging.report_detached_stream_failure passes itself to the hook, so the Anthropic stream iterators call it rather than reading the hook attribute. The client stream's hold-until-it-ends latch moves onto Logging too (hold_stream_failures, release_held_stream_failure), replacing _ClientStreamFailureReport and its swapping of the hook attribute, and the hook's request data is copied with the without helper |
||
|---|---|---|
| .. | ||
| adapters | ||
| context_management | ||
| native | ||
| responses_adapters | ||
| __init__.py | ||
| conftest.py | ||
| test_advisor_orchestration.py | ||
| test_anthropic_native_passthrough_spend_logging.py | ||
| test_caller_model_checks.py | ||
| test_convertible_blocks.py | ||
| test_reasoning_effort_fields.py | ||
| test_safeguards.py | ||
| test_stream_assembly.py | ||