mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-15 04:32:22 +00:00
The test calls OpenAI's gpt-4o-audio-preview model which sometimes doesn't return usage data in the streaming response. Fixed by: - Adding @pytest.mark.flaky(retries=5, delay=2) for retry handling - Fixing usage_obj loop to check chunk.usage is not None - Skipping gracefully when OpenAI doesn't return usage data Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.