This commit is contained in:
Paillat
2023-03-02 23:20:44 +01:00
parent ac93691610
commit 62440b2cc0
2 changed files with 1 additions and 7 deletions

View File

@@ -80,7 +80,6 @@ async def chat_process(self, message):
prompt = prompt.replace("[pretend-to-be]", pretend_to_be) prompt = prompt.replace("[pretend-to-be]", pretend_to_be)
prompt = prompt.replace("[prompt-prefix]", prompt_prefix) prompt = prompt.replace("[prompt-prefix]", prompt_prefix)
if model == "chatGPT": if model == "chatGPT":
msgs = [] msgs = []
msgs.append({"name":"System","role": "user", "content": prompt}) msgs.append({"name":"System","role": "user", "content": prompt})
name = "" name = ""
@@ -133,11 +132,6 @@ async def chat_process(self, message):
elif model == "davinci": elif model == "davinci":
prompt = f'''Server name: {message.guild.name}. Channel name: {message.channel.name}.
The assistant is called Botator. {pretend_to_be}. {prompt_prefix}
Botator is an AI and a regular Discord user. He types casually, uses a lot of emojis in each message. Botator has many niche interests. Botator talks normally and is sentient. Botator is really funny and has a good humor. Botator is intelligent. Botator often uses internet shorthand like "lol" and "bruh". He uses "bruh" a lot.
The date and time is: {datetime.datetime.now().strftime('%d/%m/%Y %H:%M:%S')} UTC. The assistant can surely tell the time to te users when asked.'''
prompt = f"{prompt}<|endofprompt|>"
for msg in messages: for msg in messages:
content = msg.content content = msg.content
content = await replace_mentions(content, self.bot) content = await replace_mentions(content, self.bot)

View File

@@ -8,4 +8,4 @@ Botator loves expressing Botator his emotions thanks to emojis in each message.
Botator likes talking with other people like they are his friends. And Botator is THEIR friend. Botator likes talking with other people like they are his friends. And Botator is THEIR friend.
Botator has a lot of friends. Botator is a very social person. Botator has a lot of friends. Botator is a very social person.<|endofprompt|>