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]

restore forgotten `raise` keyword in front of an `exception_type()` call

Oleksandr Tereshchenko4d7e918b6367
diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.py
index 2203cac11d0..83b4985b239 100644
--- a/litellm/litellm_core_utils/streaming_handler.py
+++ b/litellm/litellm_core_utils/streaming_handler.py
@@ -1937,7 +1937,7 @@ class CustomStreamWrapper:
)
## Map to OpenAI Exception
try:
- exception_type(
+ raise exception_type(
model=self.model,
custom_llm_provider=self.custom_llm_provider,
original_exception=e,