mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 00:45:29 +00:00
few fixes
This commit is contained in:
parent
b786cfaa83
commit
5424913d12
0
lollms/databases/models_database.py
Normal file
0
lollms/databases/models_database.py
Normal file
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user