MCPcopy
hub / github.com/HKUDS/DeepCode / _load_api_config

Method _load_api_config

tools/code_indexer.py:282–292  ·  view source on GitHub ↗

Load API configuration from YAML file

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected