mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
fix(openaicaller.py): improve error message when APIError occurs to clarify that it is OpenAI's fault and apologize for the inconvenience
This commit is contained in:
@@ -123,7 +123,7 @@ class openai_caller:
|
||||
f"\n\n{bcolors.BOLD}{bcolors.WARNING}APIError. This is not your fault. Retrying...{bcolors.ENDC}"
|
||||
)
|
||||
await recall_func(
|
||||
"`An APIError occurred. This is not your fault. Retrying...`"
|
||||
"`An APIError occurred. This is not your fault, it is OpenAI's fault. We apologize for the inconvenience. Retrying...`"
|
||||
)
|
||||
await asyncio.sleep(10)
|
||||
await recall_func()
|
||||
|
||||
Reference in New Issue
Block a user