From 407cc40dbe7b9225b36a70ff85332964ef04e55a Mon Sep 17 00:00:00 2001 From: Paillat Date: Wed, 19 Jul 2023 17:00:55 +0200 Subject: [PATCH] fix(openaicaller.py): improve error message when APIError occurs to clarify that it is OpenAI's fault and apologize for the inconvenience --- src/utils/openaicaller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/openaicaller.py b/src/utils/openaicaller.py index 9f7855d..57bcb93 100644 --- a/src/utils/openaicaller.py +++ b/src/utils/openaicaller.py @@ -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()