diff --git a/aider/exceptions.py b/aider/exceptions.py index 41a977985..12d2761ad 100644 --- a/aider/exceptions.py +++ b/aider/exceptions.py @@ -1,5 +1,6 @@ from dataclasses import dataclass + def retry_exceptions(): import httpx import openai @@ -37,6 +38,7 @@ class ExInfo: retry: bool description: str + EXCEPTIONS = [ ExInfo("APIConnectionError", True, None), ExInfo("APIError", True, None), @@ -93,6 +95,5 @@ class LiteLLMExceptions: return self.exceptions.get(ex.__class__) - litellm_ex = LiteLLMExceptions() litellm_ex._load(strict=True)