From d6c1a41e8d135add038a2d8669ea8427dbe7cb06 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 19 Nov 2024 09:27:16 -0800 Subject: [PATCH] feat: Add Timeout exception to handle API provider timeouts --- aider/exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aider/exceptions.py b/aider/exceptions.py index 73a88cc9c..e8fcc5997 100644 --- a/aider/exceptions.py +++ b/aider/exceptions.py @@ -40,6 +40,11 @@ EXCEPTIONS = [ ExInfo("ServiceUnavailableError", True, "The API provider's servers are down or overloaded."), ExInfo("UnprocessableEntityError", True, None), ExInfo("UnsupportedParamsError", True, None), + ExInfo( + "Timeout", + True, + "The API provider timed out without returning a response. They may be down or overloaded.", + ), ]