mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-18 12:26:29 +00:00
test
This commit is contained in:
parent
f2d09c7bc3
commit
dac0bb39b2
@ -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.
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user