mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(bedrock) raise timeout error
This commit is contained in:
parent
896fd393db
commit
6dc7ded1a6
1 changed files with 7 additions and 0 deletions
|
@ -6643,6 +6643,13 @@ 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:
|
||||||
|
exception_mapping_worked = True
|
||||||
|
raise Timeout(
|
||||||
|
message=f"BedrockException: Timeout Error - {error_str}",
|
||||||
|
model=model,
|
||||||
|
llm_provider="bedrock",
|
||||||
|
)
|
||||||
if hasattr(original_exception, "status_code"):
|
if hasattr(original_exception, "status_code"):
|
||||||
if original_exception.status_code == 500:
|
if original_exception.status_code == 500:
|
||||||
exception_mapping_worked = True
|
exception_mapping_worked = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue