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,