From 31d508efc49c67257f921cbd805d06ed5ee634d1 Mon Sep 17 00:00:00 2001 From: Paillat Date: Mon, 3 Apr 2023 13:12:20 +0200 Subject: [PATCH] [BUG] fixed pretend_to_be --- code/makeprompt.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/makeprompt.py b/code/makeprompt.py index 78fb6b1..aa83d61 100644 --- a/code/makeprompt.py +++ b/code/makeprompt.py @@ -280,9 +280,8 @@ async def chat_process(self, message): print(e) # if the pretend to be feature is enabled, we add the pretend to be text to the prompt - pretend_to_be = f"In this conversation, the assistant pretends to be {pretend_to_be}" if data_dict[ - "pretend_enabled"] else "" - prompt_prefix = "" if data_dict["prompt_prefix"] == None else data_dict["prompt_prefix"] + pretend_to_be = data_dict["pretend_to_be"] + pretend_to_be = f"In this conversation, the assistant pretends to be {pretend_to_be}" if data_dict[ "pretend_enabled"] else "" prompt = get_prompt(guild_data, data_dict, message, pretend_to_be)