litellm/tests/unit/llms/gradium
mateo-berri 3d98be6ee6 fix(gradium): answer 502 for a 200 response that is not audio
Only a missing content type or application/octet-stream, which Gradium
sends for pcm, ulaw and alaw, is relabeled as audio. Any other 200, such
as JSON or HTML, now raises a 502 instead of reaching the caller labeled
audio/pcm and being billed. Tests also pin case-insensitive voice names,
trimmed voices and extra_body's json_config winning over the top level

On 1.108 the rejection test drops its stream cases, since speech takes
no stream argument on this line

(cherry picked from commit 04d1963696)
2026-11-21 15:24:26 -08:00
..
text_to_speech fix(gradium): answer 502 for a 200 response that is not audio 2026-11-21 15:24:26 -08:00
__init__.py feat(gradium): add text-to-speech support for /v1/audio/speech 2026-11-20 10:59:02 -08:00