mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-06 08:16:00 +00:00
bugfix
This commit is contained in:
parent
1a6a58729b
commit
19d17bef85
2 changed files with 3 additions and 2 deletions
|
|
@ -19,7 +19,8 @@ class ConfigParser:
|
|||
if config_path:
|
||||
config_path = Path(config_path)
|
||||
else:
|
||||
config_path = Path(__file__).parent / (AppConfig().default_config + ".yaml")
|
||||
pre_defined_config = cli_config.get("pre_defined_config")
|
||||
config_path = Path(__file__).parent / (pre_defined_config + ".yaml")
|
||||
logger.info(f"load config from path={config_path}")
|
||||
yaml_config = OmegaConf.load(config_path)
|
||||
self.app_config = OmegaConf.merge(self.app_config, yaml_config)
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class VectorStoreConfig:
|
|||
|
||||
@dataclass
|
||||
class AppConfig:
|
||||
default_config: str = field(default="demo_config")
|
||||
pre_defined_config: str = field(default="demo_config")
|
||||
config_path: str = field(default="")
|
||||
http_service: HttpServiceConfig = field(default_factory=HttpServiceConfig)
|
||||
thread_pool: ThreadPoolConfig = field(default_factory=ThreadPoolConfig)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue