feat: Add Timeout exception to handle API provider timeouts

This commit is contained in:
Paul Gauthier 2024-11-19 09:27:16 -08:00 committed by Paul Gauthier (aider)
parent 20ab5f9326
commit d6c1a41e8d

View file

@ -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.",
),
]