From 01ca552174cdad53aeab9d6eb7e99e0c0b464a22 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 4 Apr 2025 07:49:36 +1300 Subject: [PATCH] copy --- aider/exceptions.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aider/exceptions.py b/aider/exceptions.py index 3c2ff0c30..0170ce5da 100644 --- a/aider/exceptions.py +++ b/aider/exceptions.py @@ -85,6 +85,11 @@ class LiteLLMExceptions: return ExInfo("APIConnectionError", False, "You need to: pip install boto3") if "OpenrouterException" in str(ex) and "'choices'" in str(ex): return ExInfo( - "APIConnectionError", True, "The OpenRouter API provider is down or overloaded." + "APIConnectionError", + True, + ( + "OpenRouter or the upstream API provider is down, overloaded or rate" + " limiting your requests." + ), ) return self.exceptions.get(ex.__class__, ExInfo(None, None, None))