From a02bfb5cbcd36ce8142ea36a56f723e6a000c4a8 Mon Sep 17 00:00:00 2001 From: Paillat Date: Wed, 16 Aug 2023 09:31:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(makeprompt.py):=20await=20th?= =?UTF-8?q?e=20moderate=20function=20call=20to=20properly=20handle=20moder?= =?UTF-8?q?ation=20before=20increasing=20depth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/makeprompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makeprompt.py b/src/makeprompt.py index b838536..3c02391 100644 --- a/src/makeprompt.py +++ b/src/makeprompt.py @@ -153,7 +153,7 @@ async def chatgpt_process( await chatgpt_process(self, msgs, message, api_key, prompt, model, depth) else: content = response.get("content", "") - if moderate(api_key, content, error_call): + if await moderate(api_key, content, error_call): depth += 1 if depth > 2: await message.channel.send(