litellm/tests/test_litellm/proxy/hooks
Raney Cain eb689a1f07
fix(proxy): async_post_call_streaming_iterator_hook now properly iterates async generators (#17626)
The async_post_call_streaming_iterator_hook function was broken:
1. Was a sync function (def) not async generator
2. Returned AsyncGenerator without iterating it
3. Callback generators were chained but never consumed

This fix:
1. Makes the function an async generator (async def + yield)
2. Actually iterates through the chained callbacks with 'async for'
3. Properly yields chunks to the caller

Fixes #9639
2025-12-07 23:29:42 -08:00
..
test_async_post_call_streaming_iterator_hook.py fix(proxy): async_post_call_streaming_iterator_hook now properly iterates async generators (#17626) 2025-12-07 23:29:42 -08:00
test_dynamic_rate_limiter_v3.py [Fixes] Dynamic Rate Limiter - Dynamic rate limiting token count increases/decreases by 1 instead of actual count + Redis TTL (#17558) 2025-12-05 15:25:45 -08:00
test_key_management_event_hooks.py [Bug fix] Secret Managers Integration - Make email and secret manager operations independent in key management hooks (#17551) 2025-12-05 15:26:00 -08:00
test_parallel_request_limiter_v3.py [Bug Fix] Parallel Request Limiter with /messages (#17426) 2025-12-03 14:13:28 -08:00
test_prompt_injection_detection.py fix: prompt injection not working (#16701) 2025-11-17 20:04:57 -08:00
test_proxy_track_cost_callback.py