update code

This commit is contained in:
stellahsr 2023-10-09 19:32:50 +08:00
parent f70ba27d35
commit 37a7a96bbe
13 changed files with 255 additions and 215 deletions

View file

@ -87,6 +87,7 @@ class Config(metaclass=Singleton):
self.pyppeteer_executable_path = self._get("PYPPETEER_EXECUTABLE_PATH", "")
self.prompt_format = self._get("PROMPT_FORMAT", "markdown")
self.resume = self._get("RESUME", False)
def _init_with_config_files_and_env(self, configs: dict, yaml_file):
"""Load from config/key.yaml, config/config.yaml, and env in decreasing order of priority"""