The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix: change chunk_size for aiter_bytes
AlexsanderHamir44f2013495c6
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex a6e73199f0e..36178652a7d 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -5305,7 +5305,7 @@ async def audio_speech(# Printing each chunk sizeasync 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