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):
|
||||
"""Initialize configuration manager."""
|
||||
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
|
||||
# This directory is volume-mounted in Docker (./bot/memory:/app/memory)
|
||||
self.memory_dir = Path(__file__).parent / "memory"
|
||||
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
|
||||
self.static_config: Dict = self._load_static_config()
|
||||
self.runtime_config: Dict = self._load_runtime_config()
|
||||
|
||||
17
config.yaml
17
config.yaml
@@ -6,17 +6,16 @@
|
||||
|
||||
# Service Endpoints
|
||||
services:
|
||||
llama:
|
||||
url: http://llama-swap:8080
|
||||
amd_url: http://llama-swap-amd:8080
|
||||
url: http://llama-swap:8080
|
||||
amd_url: http://llama-swap-amd:8080
|
||||
|
||||
cheshire_cat:
|
||||
url: http://cheshire-cat:80
|
||||
timeout_seconds: 120
|
||||
enabled: true # Set to false to disable Cheshire Cat integration
|
||||
cheshire_cat:
|
||||
url: http://cheshire-cat:80
|
||||
timeout_seconds: 120
|
||||
enabled: true # Set to false to disable Cheshire Cat integration
|
||||
|
||||
face_detector:
|
||||
startup_timeout_seconds: 60
|
||||
face_detector:
|
||||
startup_timeout_seconds: 60
|
||||
|
||||
# AI Models
|
||||
models:
|
||||
|
||||
Reference in New Issue
Block a user