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 5963d9d283
commit a7222f257c
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