Skip to content

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]

Update litellm/proxy/proxy_server.py

ryan-crabbede8552d92c07
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 9d9734148b7..8fa452fb40b 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -5153,7 +5153,7 @@ async def async_data_generator(
if hasattr(response, "aclose"):
try:
await response.aclose()
- except Exception as e:
+ except BaseException as e:
verbose_proxy_logger.debug(
"async_data_generator: error closing response stream: %s",
e,