mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
Pad a commit or clear with under 0.3 s of new audio with silence, since ElevenLabs closes the session on it
Drop only the cleared commit's transcript, in commit order
Read realtime support from the cost map and send the deployment's model id
Log each provider batch's transcripts and billed seconds before any client send, so a dropped client is still billed
Map client-caused ElevenLabs errors to 4xx, import websockets lazily, and keep the port reason in the shared URL helper error
Adapted to lts/1.108.x. The relay logs a batch's transcriptions before any client send inside the line's provider loop, without the realtime TPM-limit hooks main threads it through, since those are not on this line. The lazy websockets import and its test were already here, the shared URL helper test is not on this line, and the batch-billing test that needs TPM limiters is left out
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_transcription_protocol.py | ||