mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Update makeprompt.py
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user