Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion aider/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ExInfo:
"The API provider is not able to authenticate you. Check your API key.",
),
ExInfo("AzureOpenAIError", True, None),
ExInfo("BadGatewayError", True, None),
ExInfo("BadRequestError", False, None),
ExInfo("BudgetExceededError", True, None),
ExInfo(
Expand All @@ -28,6 +29,7 @@ class ExInfo:
"The API provider has refused the request due to a safety policy about the content.",
),
ExInfo("ContextWindowExceededError", False, None), # special case handled in base_coder
ExInfo("ImageFetchError", False, None),
ExInfo("InternalServerError", True, "The API provider's servers are down or overloaded."),
ExInfo("InvalidRequestError", True, None),
ExInfo("JSONSchemaValidationError", True, None),
Expand Down Expand Up @@ -62,7 +64,7 @@ def _load(self, strict=False):

for var in dir(litellm):
if var.endswith("Error"):
if var not in self.exception_info:
if var not in self.exception_info and var not in [ "ErrorEventError" ]:
raise ValueError(f"{var} is in litellm but not in aider's exceptions list")

for var in self.exception_info:
Expand Down