From 0e270287602571cbd3848c6ba25b297454ea0334 Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 16 Feb 2023 10:56:14 +0100 Subject: [PATCH] Update makeprompt.py --- code/makeprompt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/makeprompt.py b/code/makeprompt.py index 813e39b..32c82b8 100644 --- a/code/makeprompt.py +++ b/code/makeprompt.py @@ -143,9 +143,8 @@ To include IMAGES, botator does [image:"here a short title of the image"], then stop=[" Human:", " AI:", "AI:", "<|endofprompt|>",] ) except Exception as e: - print(e) response = None - await message.channel.send(f"```diff\n-Error: OpenAI API ERROR.\n\n{e}```") + await message.channel.send(f"```diff\n-Error: OpenAI API ERROR.\n\n{e}```", delete_after=10) return if response != None: break response = response["choices"][0]["text"]