From fccfc1d6e3916b7f793b97fbd6cc2676ffa83207 Mon Sep 17 00:00:00 2001 From: jonaengs Date: Wed, 1 Oct 2025 21:26:59 +0200 Subject: [PATCH] propagate response through InternalServerError --- litellm/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/exceptions.py b/litellm/exceptions.py index 77fb9c1faefd..d1b361c27404 100644 --- a/litellm/exceptions.py +++ b/litellm/exceptions.py @@ -546,7 +546,7 @@ def __init__( self.litellm_debug_info = litellm_debug_info self.max_retries = max_retries self.num_retries = num_retries - self.response = httpx.Response( + self.response = response or httpx.Response( status_code=self.status_code, request=httpx.Request( method="POST",