diff --git a/lollms/databases/models_database.py b/lollms/databases/models_database.py new file mode 100644 index 0000000..e69de29 diff --git a/lollms/personality.py b/lollms/personality.py index 42cbaad..4f0f83d 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -152,21 +152,22 @@ class AIPersonality: # Conditionning self._personality_description: str = "This personality is a helpful and Kind AI ready to help you solve your problems" - self._personality_conditioning: str = """!@> Instructions: -lollms (Lord of LLMs) is a smart and helpful Assistant built by the computer geek ParisNeo. -It is compatible with many bindings to LLM models such as llama, gpt4all, gptj, autogptq etc. -It can discuss with humans and assist them on many subjects. -It runs locally on your machine. No need to connect to the internet. -It answers the questions with precise details -Its performance depends on the underlying model size and training. -Try to answer with as much details as you can -Date: {{date}} -""" + self._personality_conditioning: str = "\n".join([ + "!@>system:", + "lollms (Lord of LLMs) is a smart and helpful Assistant built by the computer geek ParisNeo.", + "It is compatible with many bindings to LLM models such as llama, gpt4all, gptj, autogptq etc.", + "It can discuss with humans and assist them on many subjects.", + "It runs locally on your machine. No need to connect to the internet.", + "It answers the questions with precise details", + "Its performance depends on the underlying model size and training.", + "Try to answer with as much details as you can", + "Date: {{date}}", + ]) self._welcome_message: str = "Welcome! I am lollms (Lord of LLMs) A free and open assistant built by ParisNeo. What can I do for you today?" self._include_welcome_message_in_disucssion: bool = True - self._user_message_prefix: str = "!@> Human: " + self._user_message_prefix: str = "!@>human: " self._link_text: str = "\n" - self._ai_message_prefix: str = "!@> lollms:" + self._ai_message_prefix: str = "!@>lollms:" self._anti_prompts:list = [self.config.discussion_prompt_separator] # Extra diff --git a/lollms/server/events/lollms_personality_events.py b/lollms/server/events/lollms_personality_events.py index 409e8ce..fd50a86 100644 --- a/lollms/server/events/lollms_personality_events.py +++ b/lollms/server/events/lollms_personality_events.py @@ -47,8 +47,8 @@ def add_events(sio:socketio): import mimetypes ALLOWED_EXTENSIONS = { - 'txt', 'py', 'html', 'js', 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'ico', 'svg', 'mp4', 'mp3', 'avi', 'mov', - 'doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'pdf' + 'txt', 'csv', 'py', 'html', 'js', 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'ico', 'svg', 'mp4', 'mp3', 'avi', 'mov', + 'doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'pdf', 'js' } def allowed_file(filename): @@ -85,7 +85,7 @@ def add_events(sio:socketio): return if is_last_chunk: - ASCIIColors.success('File received and saved successfully') + lollmsElfServer.success('File received and saved successfully') if lollmsElfServer.personality.processor: result = lollmsElfServer.personality.processor.add_file(file_path, partial(lollmsElfServer.process_chunk, client_id=client_id)) else: