mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
copy
This commit is contained in:
parent
4529d73bf3
commit
01ca552174
1 changed files with 6 additions and 1 deletions
|
@ -85,6 +85,11 @@ class LiteLLMExceptions:
|
||||||
return ExInfo("APIConnectionError", False, "You need to: pip install boto3")
|
return ExInfo("APIConnectionError", False, "You need to: pip install boto3")
|
||||||
if "OpenrouterException" in str(ex) and "'choices'" in str(ex):
|
if "OpenrouterException" in str(ex) and "'choices'" in str(ex):
|
||||||
return ExInfo(
|
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))
|
return self.exceptions.get(ex.__class__, ExInfo(None, None, None))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue