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