in debug mode add a log about rate limit error
parent
1073954fb7
commit
051b5372ce
|
@ -95,6 +95,11 @@ def create_chat_completion(
|
|||
)
|
||||
break
|
||||
except RateLimitError:
|
||||
if CFG.debug_mode:
|
||||
print(
|
||||
Fore.RED + "Error: ",
|
||||
f"Reached rate limit. Waiting {backoff} seconds..." + Fore.RESET,
|
||||
)
|
||||
pass
|
||||
except APIError as e:
|
||||
if e.http_status == 502:
|
||||
|
|
Loading…
Reference in New Issue