()
| 8 | from masfactory import OpenAIModel |
| 9 | |
| 10 | def get_config(): |
| 11 | root = os.path.dirname(os.path.dirname(__file__)) |
| 12 | sys.path.append(root) |
| 13 | config_dir = os.path.join(root, "assets", "config") |
| 14 | config_files = [ |
| 15 | "ChatChainConfig.json", |
| 16 | "PhaseConfig.json", |
| 17 | "RoleConfig.json" |
| 18 | ] |
| 19 | config_paths = [] |
| 20 | for config_file in config_files: |
| 21 | company_config_path = os.path.join(config_dir, config_file) |
| 22 | assert os.path.exists(company_config_path), f"{company_config_path} does not exist" |
| 23 | config_paths.append(company_config_path) |
| 24 | return tuple(config_paths) |
| 25 | |
| 26 | config_path, config_phase_path, config_role_path = get_config() |
| 27 |
no test coverage detected