Update makeprompt.py

This commit is contained in:
Paillat
2023-02-16 10:56:14 +01:00
parent 5d08c2903b
commit 0e27028760

View File

@@ -143,9 +143,8 @@ To include IMAGES, botator does [image:"here a short title of the image"], then
stop=[" Human:", " AI:", "AI:", "<|endofprompt|>",] stop=[" Human:", " AI:", "AI:", "<|endofprompt|>",]
) )
except Exception as e: except Exception as e:
print(e)
response = None 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 return
if response != None: break if response != None: break
response = response["choices"][0]["text"] response = response["choices"][0]["text"]