Load API configuration from YAML file
(self)
| 280 | return logger |
| 281 | |
| 282 | def _load_api_config(self) -> Dict[str, Any]: |
| 283 | """Load API configuration from YAML file""" |
| 284 | try: |
| 285 | import yaml |
| 286 | |
| 287 | with open(self.config_path, "r", encoding="utf-8") as f: |
| 288 | return yaml.safe_load(f) |
| 289 | except Exception as e: |
| 290 | # Create a basic logger for this error since self.logger doesn't exist yet |
| 291 | print(f"Warning: Failed to load API config from {self.config_path}: {e}") |
| 292 | return {} |
| 293 | |
| 294 | def _load_indexer_config(self) -> Dict[str, Any]: |
| 295 | """Load indexer configuration from YAML file""" |