mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-04-19 00:06:52 +00:00
repared conditionning error
This commit is contained in:
parent
858b9b418a
commit
f83b9261b6
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user