mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-19 19:26:28 +00:00
upgraded paths
This commit is contained in:
parent
063927141b
commit
0d987c16bb
7980
lollms/apps/playground/static/package-lock.json
generated
7980
lollms/apps/playground/static/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -8,10 +8,12 @@ lollms_path = Path(__file__).parent
|
||||
lollms_default_cfg_path = lollms_path / "configs/config.yaml"
|
||||
lollms_bindings_zoo_path = lollms_path / "bindings_zoo"
|
||||
lollms_personalities_zoo_path = lollms_path / "personalities_zoo"
|
||||
lollms_extensions_zoo_path = lollms_path / "extensions_zoo"
|
||||
|
||||
|
||||
personalities_zoo_repo = "https://github.com/ParisNeo/lollms_personalities_zoo.git"
|
||||
bindings_zoo_repo = "https://github.com/ParisNeo/lollms_bindings_zoo.git"
|
||||
extensions_zoo_repo = "https://github.com/ParisNeo/lollms_extensions_zoo.git"
|
||||
|
||||
# Now we speify the personal folders
|
||||
class LollmsPaths:
|
||||
@ -45,6 +47,7 @@ class LollmsPaths:
|
||||
|
||||
self.bindings_zoo_path = personal_path / "bindings_zoo"
|
||||
self.personalities_zoo_path = personal_path / "personalities_zoo"
|
||||
self.extensions_zoo_path = personal_path / "extensions_zoo_path"
|
||||
|
||||
|
||||
self.create_directories()
|
||||
@ -62,6 +65,7 @@ class LollmsPaths:
|
||||
"Personal outputs Path": self.personal_outputs_path,
|
||||
"Bindings Zoo Path": self.bindings_zoo_path,
|
||||
"Personalities Zoo Path": self.personalities_zoo_path,
|
||||
"Extensions zoo path": self.extensions_zoo_path,
|
||||
"Personal user infos path": self.personal_user_infos_path
|
||||
}
|
||||
return "\n".join([f"{category}: {path}" for category, path in directories.items()])
|
||||
@ -90,6 +94,11 @@ class LollmsPaths:
|
||||
ASCIIColors.info("No personalities found in your personal space.\nCloning the personalities zoo")
|
||||
subprocess.run(["git", "clone", personalities_zoo_repo, self.personalities_zoo_path])
|
||||
|
||||
if not self.extensions_zoo_path.exists():
|
||||
# Clone the repository to the target path
|
||||
ASCIIColors.info("No extensions found in your personal space.\nCloning the extensions zoo")
|
||||
subprocess.run(["git", "clone", extensions_zoo_repo, self.extensions_zoo_path])
|
||||
|
||||
|
||||
def copy_default_config(self):
|
||||
local_config_path = self.personal_configuration_path / f"{self.tool_prefix}local_config.yaml"
|
||||
|
Loading…
Reference in New Issue
Block a user