fixes: #4947 Bedrock context exception does not have a response

This commit is contained in:
David Leen 2024-07-29 14:23:56 -07:00
parent 452441ae03
commit ebca13b2ca

View file

@ -6845,7 +6845,6 @@ def exception_type(
message=f"BedrockException: Context Window Error - {error_str}", message=f"BedrockException: Context Window Error - {error_str}",
model=model, model=model,
llm_provider="bedrock", llm_provider="bedrock",
response=original_exception.response,
) )
elif "Malformed input request" in error_str: elif "Malformed input request" in error_str:
exception_mapping_worked = True exception_mapping_worked = True