mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 04:37:54 +00:00
fix
This commit is contained in:
parent
72b307d37d
commit
37a090d4f4
@ -275,6 +275,7 @@ class BaseConfig:
|
|||||||
return self.config[key]
|
return self.config[key]
|
||||||
|
|
||||||
def copy(self):
|
def copy(self):
|
||||||
|
|
||||||
return BaseConfig(self.exceptional_keys, self.config.copy(), self.file_path)
|
return BaseConfig(self.exceptional_keys, self.config.copy(), self.file_path)
|
||||||
|
|
||||||
def __getattr__(self, key):
|
def __getattr__(self, key):
|
||||||
|
@ -64,7 +64,10 @@ class LOLLMSConfig(BaseConfig):
|
|||||||
else:
|
else:
|
||||||
self.lollms_paths = lollms_paths
|
self.lollms_paths = lollms_paths
|
||||||
|
|
||||||
|
def copy(self):
|
||||||
|
cfg = LOLLMSConfig(self.file_path, self.lollms_paths)
|
||||||
|
cfg.config = self.config.copy()
|
||||||
|
return cfg
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def autoload(lollms_paths:LollmsPaths, config_path:str=None):
|
def autoload(lollms_paths:LollmsPaths, config_path:str=None):
|
||||||
# Configuration loading part
|
# Configuration loading part
|
||||||
|
Loading…
Reference in New Issue
Block a user