From 62440b2cc09f2fa861af71a7859b9f6a2ae9cbdb Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 2 Mar 2023 23:20:44 +0100 Subject: [PATCH] debugged --- code/makeprompt.py | 6 ------ code/prompts/davinci.txt | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/code/makeprompt.py b/code/makeprompt.py index e255a65..4b5c2f0 100644 --- a/code/makeprompt.py +++ b/code/makeprompt.py @@ -80,7 +80,6 @@ async def chat_process(self, message): prompt = prompt.replace("[pretend-to-be]", pretend_to_be) prompt = prompt.replace("[prompt-prefix]", prompt_prefix) if model == "chatGPT": - msgs = [] msgs.append({"name":"System","role": "user", "content": prompt}) name = "" @@ -133,11 +132,6 @@ async def chat_process(self, message): 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: content = msg.content content = await replace_mentions(content, self.bot) diff --git a/code/prompts/davinci.txt b/code/prompts/davinci.txt index 67d7cd7..71813e2 100644 --- a/code/prompts/davinci.txt +++ b/code/prompts/davinci.txt @@ -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 has a lot of friends. Botator is a very social person. \ No newline at end of file +Botator has a lot of friends. Botator is a very social person.<|endofprompt|> \ No newline at end of file