mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-19 06:54:22 +01:00
Merge pull request #1683 from Hyaxia/feature/rate-limit-log
in debug mode add a log about rate limit error
This commit is contained in:
@@ -95,7 +95,11 @@ def create_chat_completion(
|
|||||||
)
|
)
|
||||||
break
|
break
|
||||||
except RateLimitError:
|
except RateLimitError:
|
||||||
pass
|
if CFG.debug_mode:
|
||||||
|
print(
|
||||||
|
Fore.RED + "Error: ",
|
||||||
|
f"Reached rate limit, passing..." + Fore.RESET,
|
||||||
|
)
|
||||||
except APIError as e:
|
except APIError as e:
|
||||||
if e.http_status == 502:
|
if e.http_status == 502:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user