use config for PYPPETEER_EXECUTABLE_PATH

This commit is contained in:
hy.li 2023-09-13 14:39:51 +08:00
parent 69ea116d1a
commit e947ce5fea
3 changed files with 10 additions and 5 deletions

View file

@ -84,6 +84,7 @@ class Config(metaclass=Singleton):
self.model_for_researcher_summary = self._get("MODEL_FOR_RESEARCHER_SUMMARY")
self.model_for_researcher_report = self._get("MODEL_FOR_RESEARCHER_REPORT")
self.mermaid_engine = self._get("MERMAID_ENGINE", 'nodejs')
self.pyppeteer_executable_path = self._get("PYPPETEER_EXECUTABLE_PATH", '')
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"""