superdup95 commited on
Commit
f1ba8dd
1 Parent(s): d1d886b

Update api_usage.py

Browse files
Files changed (1) hide show
  1. api_usage.py +1 -1
api_usage.py CHANGED
@@ -200,7 +200,7 @@ def check_key_ant_availability(ant):
200
  #print(e.__cause__) # an underlying Exception, likely raised within httpx.
201
  return False, "Error: The server could not be reached", ""
202
  except anthropic.RateLimitError as e:
203
- return True, "Error: 429, rate limited; we should back off a bit(retry 5 times failed)", ""
204
  except anthropic.APIStatusError as e:
205
  err_msg = e.response.json().get('error', {}).get('message', '')
206
  return False, f"Error: {e.status_code}, {err_msg}", ""
 
200
  #print(e.__cause__) # an underlying Exception, likely raised within httpx.
201
  return False, "Error: The server could not be reached", ""
202
  except anthropic.RateLimitError as e:
203
+ return True, "Error: 429, rate limited; we should back off a bit(retry 3 times failed)", ""
204
  except anthropic.APIStatusError as e:
205
  err_msg = e.response.json().get('error', {}).get('message', '')
206
  return False, f"Error: {e.status_code}, {err_msg}", ""