This commit is contained in:
Saifeddine ALOUI 2023-08-26 20:21:42 +02:00
parent f2d09c7bc3
commit dac0bb39b2
3 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Models Configuration file ===========================
version: 19
version: 20
binding_name: null
model_name: null
@ -36,6 +36,7 @@ user_avatar: default_user
# Automatic update
auto_update: false
auto_save: true
debug: false
# Data vectorization
@ -44,4 +45,5 @@ data_visualization_method: "PCA" #"PCA" or "TSNE"
data_vectorization_save_db: False # For each new session, new files
data_vectorization_chunk_size: 512 # chunk size
data_vectorization_overlap_size: 128 # overlap between chunks size
data_vectorization_nb_chunks: 2 # number of chunks to use
data_vectorization_nb_chunks: 2 # number of chunks to use
data_vectorization_build_keys_words: false # If true, when querrying the database, we use keywords generated from the user prompt instead of the prompt itself.

View File

@ -131,8 +131,6 @@ Date: {{date}}
self._logo: Optional[Image.Image] = None
self._processor = None
if personality_package_path is None:
self.config = {}
self.assets_list = []
@ -146,16 +144,16 @@ Date: {{date}}
# Validate that the path exists
if not self.personality_package_path.exists():
raise ValueError("The provided path does not exist.")
raise ValueError(f"Could not find the personality package:{self.personality_package_path}")
# Validate that the path format is OK with at least a config.yaml file present in the folder
if not self.personality_package_path.is_dir():
raise ValueError("The provided path is not a folder.")
raise ValueError(f"Personality package path is not a folder:{self.personality_package_path}")
self.personality_folder_name = self.personality_package_path.stem
# Open and store the personality
self.load_personality(personality_package_path)
self.load_personality()
def setCallback(self, callback: Callable[[str, int, dict], bool]):
self.callback = callback
@ -1447,7 +1445,7 @@ class PersonalityBuilder:
if len(self.config["personalities"][id].split("/"))==2:
self.personality = AIPersonality(
self.lollms_paths.personalities_zoo_path / personality_folder,
personality_folder,
self.lollms_paths,
self.config,
self.model,

View File

@ -26,7 +26,7 @@ def get_all_files(path):
setuptools.setup(
name="lollms",
version="4.2.0",
version="4.2.2",
author="Saifeddine ALOUI",
author_email="aloui.saifeddine@gmail.com",
description="A python library for AI personality definition",