Update makeprompt.py

This commit is contained in:
Paillat
2023-02-09 21:18:23 +01:00
parent 167baac24d
commit c7a3fd48d0

View File

@@ -129,7 +129,6 @@ To include IMAGES, botator does [image:"here a short title of the image"], then
prompt = prompt + f"\n{self.bot.user.name} ({now.strftime('%Y-%m-%d %H:%M:%S')}):" prompt = prompt + f"\n{self.bot.user.name} ({now.strftime('%Y-%m-%d %H:%M:%S')}):"
openai.api_key = api_key openai.api_key = api_key
#we can try up to 10 times to get a response from the API #we can try up to 10 times to get a response from the API
await message.channel.send(f"```diff\n-DEBUG```\n {prompt}") #debug only
for i in range(10): for i in range(10):
try: try:
response = await openai.Completion.acreate( response = await openai.Completion.acreate(