fix(main.py): keep client consistent across calls + exponential backoff retry on ratelimit errors

This commit is contained in:
Krrish Dholakia 2023-11-14 16:25:36 -08:00
parent 3110b6d7d6
commit 9b582b2c85
9 changed files with 239 additions and 131 deletions

View file

@ -105,7 +105,7 @@ class APIError(APIError): # type: ignore
super().__init__(
self.message,
request=request, # type: ignore
body=None,
body=None
)
# raised if an invalid request (not get, delete, put, post) is made