Compare commits
2 Commits
f50c677baf
...
4b5be3bf97
| Author | SHA1 | Date | |
|---|---|---|---|
| 4b5be3bf97 | |||
| 742b7b6b64 |
@@ -35,12 +35,15 @@ class ConfigManager:
|
|||||||
def __init__(self, config_path: Optional[str] = None):
|
def __init__(self, config_path: Optional[str] = None):
|
||||||
"""Initialize configuration manager."""
|
"""Initialize configuration manager."""
|
||||||
self.config_path = Path(config_path) if config_path else Path(__file__).parent.parent / "config.yaml"
|
self.config_path = Path(config_path) if config_path else Path(__file__).parent.parent / "config.yaml"
|
||||||
self.runtime_config_path = Path(__file__).parent.parent / "config_runtime.yaml"
|
|
||||||
|
|
||||||
# Memory directory for server configs and state
|
# Memory directory for server configs and state
|
||||||
|
# This directory is volume-mounted in Docker (./bot/memory:/app/memory)
|
||||||
self.memory_dir = Path(__file__).parent / "memory"
|
self.memory_dir = Path(__file__).parent / "memory"
|
||||||
self.memory_dir.mkdir(exist_ok=True)
|
self.memory_dir.mkdir(exist_ok=True)
|
||||||
|
|
||||||
|
# Runtime config must live inside memory_dir so it persists across container restarts
|
||||||
|
self.runtime_config_path = self.memory_dir / "config_runtime.yaml"
|
||||||
|
|
||||||
# Load configurations
|
# Load configurations
|
||||||
self.static_config: Dict = self._load_static_config()
|
self.static_config: Dict = self._load_static_config()
|
||||||
self.runtime_config: Dict = self._load_runtime_config()
|
self.runtime_config: Dict = self._load_runtime_config()
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
# Service Endpoints
|
# Service Endpoints
|
||||||
services:
|
services:
|
||||||
llama:
|
|
||||||
url: http://llama-swap:8080
|
url: http://llama-swap:8080
|
||||||
amd_url: http://llama-swap-amd:8080
|
amd_url: http://llama-swap-amd:8080
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user