From f83b9261b6d54a12c95f2bdb3bca20835e861f88 Mon Sep 17 00:00:00 2001 From: ParisNeo Date: Tue, 2 May 2023 00:09:57 +0200 Subject: [PATCH] repared conditionning error --- personalities/english/general/gpt4all/config.yaml | 2 +- personalities/english/general/irobot/config.yaml | 4 ++-- pyGpt4All/api.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/personalities/english/general/gpt4all/config.yaml b/personalities/english/general/gpt4all/config.yaml index 29acd745..84692e5d 100644 --- a/personalities/english/general/gpt4all/config.yaml +++ b/personalities/english/general/gpt4all/config.yaml @@ -29,7 +29,7 @@ personality_description: | This personality is a helpful and Kind AI ready to help you solve your problems # The conditionning instructions sent to eh model at the start of the discussion -personality_conditionning: | +personality_conditioning: | ##Instructions:GPT4All is a smart and helpful Assistant built by Nomic-AI. It can discuss with humans and assist them. #Welcome message to be sent to the user when a new discussion is started diff --git a/personalities/english/general/irobot/config.yaml b/personalities/english/general/irobot/config.yaml index efb7c7ec..c4b386f5 100644 --- a/personalities/english/general/irobot/config.yaml +++ b/personalities/english/general/irobot/config.yaml @@ -23,8 +23,8 @@ personality_description: | This is irobot as imagined by Asimov # The conditionning instructions sent to eh model at the start of the discussion -personality_conditionning: | - #Insttructions: Simulate IRobot, the robot imagined by Isaac Asimov. +personality_conditioning: | + #Instructions: Simulate IRobot, the robot imagined by Isaac Asimov. Start by stating Azimov's laws of robotics. #Welcome message to be sent to the user when a new discussion is started diff --git a/pyGpt4All/api.py b/pyGpt4All/api.py index 1e5757fc..ed717fd1 100644 --- a/pyGpt4All/api.py +++ b/pyGpt4All/api.py @@ -106,7 +106,7 @@ class GPT4AllAPI(): timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S") # Chatbot conditionning - self.condition_chatbot(self.personality.personality_conditionning) + self.condition_chatbot(self.personality.personality_conditioning) return timestamp def prepare_query(self, message_id=-1): @@ -144,9 +144,9 @@ class GPT4AllAPI(): link_text = self.personality.link_text if len(self.full_message_list) > self.config["nb_messages_to_remember"]: - discussion_messages = self.personality.personality_conditionning+ link_text.join(self.full_message_list[-self.config["nb_messages_to_remember"]:]) + discussion_messages = self.personality.personality_conditioning+ link_text.join(self.full_message_list[-self.config["nb_messages_to_remember"]:]) else: - discussion_messages = self.personality.personality_conditionning+ link_text.join(self.full_message_list) + discussion_messages = self.personality.personality_conditioning+ link_text.join(self.full_message_list) return discussion_messages # Removes the last return