litellm/tests/unit/llms/openai/transcriptions
devin-ai-integration[bot] 7cdd73dc4e fix(cost): bill transcriptions by the seconds the provider reports
Line port of the usage.seconds billing slice onto stable/1.106.x: normalized_audio_duration_seconds and _get_transcription_usage_duration from #35600 (ecb8ef5ca8), and the provider-seconds-first _transcription_duration_for_cost from #50727 (dfb1aac8b1), with their unit tests. The line had no attribute_or_none in core_helpers, so main's definition comes along. The rest of #35600 stays on main.

Ported from 76539f9156 (litellm_backport_transcription_usage_seconds_lts_1_108_x).
2026-11-10 06:31:18 +00:00
..
__init__.py test: add package initializers to migrated unit test directories 2026-09-20 11:52:07 +00:00
test_audio_transcription_guardrail_handler.py test: migrate openai, openai_like and openrouter legacy tests to tests/unit 2026-09-20 10:40:27 +00:00
test_openai_transcriptions_handler.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_transcription_duration_hidden.py fix(cost): bill transcriptions by the seconds the provider reports 2026-11-10 06:31:18 +00:00
test_whisper_transformation.py test: migrate openai, openai_like and openrouter legacy tests to tests/unit 2026-09-20 10:40:27 +00:00