mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
🐛 fix(makeprompt.py): await the moderate function call to properly handle moderation before increasing depth
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user