From ebca13b2ca03a0431f7083d0b65c2a0324ad9d75 Mon Sep 17 00:00:00 2001 From: David Leen Date: Mon, 29 Jul 2024 14:23:56 -0700 Subject: [PATCH] fixes: #4947 Bedrock context exception does not have a response --- litellm/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/litellm/utils.py b/litellm/utils.py index 411d2509d..cbe3d8408 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -6845,7 +6845,6 @@ def exception_type( message=f"BedrockException: Context Window Error - {error_str}", model=model, llm_provider="bedrock", - response=original_exception.response, ) elif "Malformed input request" in error_str: exception_mapping_worked = True