mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(utils.py): exception map bedrock error
This commit is contained in:
parent
5d24a72b7e
commit
b486bb1f8b
1 changed files with 4 additions and 1 deletions
|
@ -8713,7 +8713,10 @@ def exception_type(
|
||||||
llm_provider="bedrock",
|
llm_provider="bedrock",
|
||||||
response=original_exception.response,
|
response=original_exception.response,
|
||||||
)
|
)
|
||||||
if "Connect timeout on endpoint URL" in error_str:
|
if (
|
||||||
|
"Connect timeout on endpoint URL" in error_str
|
||||||
|
or "timed out" in error_str
|
||||||
|
):
|
||||||
exception_mapping_worked = True
|
exception_mapping_worked = True
|
||||||
raise Timeout(
|
raise Timeout(
|
||||||
message=f"BedrockException: Timeout Error - {error_str}",
|
message=f"BedrockException: Timeout Error - {error_str}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue