Update code.py

This commit is contained in:
Paillat
2022-11-28 08:28:08 +01:00
parent c2ff23d319
commit 84ce8a9633

View File

@@ -198,7 +198,7 @@ async def on_message(message):
prompt += f"Donald Bot \"Botator\": {msg.content}\n"
else:
prompt += f"{msg.author.display_name}: {msg.content}\n"
prompt = f"This is a conversation with an AI. Only the {prompt_size} last messages are used as a prompt.\n\n" + prompt + f"\n Donald Bot \"Botator\":"
prompt = f"This is a conversation with an AI in a discord chat. The AI is called Donald Bot \"Botator\" Only the {prompt_size} last messages are used as a prompt.\n\n" + prompt + f"\n Donald Bot \"Botator\":"
#send the request to the api
debug("Sending request to the api")
debug(prompt)