mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-04 01:48:57 +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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_advisor_integration.py | ||
| test_agentic_streaming_iterator.py | ||
| test_anthropic_messages_effort.py | ||
| test_anthropic_messages_encrypted_reasoning.py | ||
| test_anthropic_messages_handler.py | ||
| test_anthropic_messages_per_turn_control.py | ||
| test_anthropic_messages_router.py | ||
| test_anthropic_messages_service_tier.py | ||
| test_anthropic_messages_speed.py | ||
| test_anthropic_messages_structured_outputs.py | ||
| test_anthropic_messages_transformation.py | ||
| test_content_after_stop_reason.py | ||
| test_fake_stream_iterator.py | ||
| test_mcp_handler.py | ||
| test_mid_conversation_system.py | ||
| test_parallel_tool_calls.py | ||
| test_reasoning_auto_summary_messages.py | ||
| test_reasoning_effort_translation.py | ||
| test_request_optional_param_utils.py | ||
| test_response_cache.py | ||
| test_sse_wrapper.py | ||
| test_streaming_iterator.py | ||