Merge pull request #4948 from dleen/response

fixes: #4947 Bedrock context exception does not have a response
This commit is contained in:
Krish Dholakia 2024-07-29 15:03:40 -07:00 committed by GitHub
commit 6bdb9203b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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