mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix: change chunk_size for aiter_bytes
1KB is too small for audio and is lowering the RPS when testing with medium to large files
This commit is contained in:
parent
d01efcb308
commit
44f2013495
1 changed files with 1 additions and 1 deletions
|
|
@ -5305,7 +5305,7 @@ async def audio_speech(
|
|||
|
||||
# Printing each chunk size
|
||||
async def generate(_response: HttpxBinaryResponseContent):
|
||||
_generator = await _response.aiter_bytes(chunk_size=1024)
|
||||
_generator = await _response.aiter_bytes(chunk_size=4096)
|
||||
async for chunk in _generator:
|
||||
yield chunk
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue