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:
@@ -136,7 +136,7 @@ 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')}):"
|
||||
openai.api_key = api_key
|
||||
#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
|
||||
#await message.channel.send(f"```diff\n-DEBUG```\n {prompt}") #debug only
|
||||
for i in range(10):
|
||||
try:
|
||||
response = await openai.Completion.acreate(
|
||||
|
||||
Reference in New Issue
Block a user