Harden local intent routing

This commit is contained in:
2026-05-10 23:48:13 +08:00
parent dc8267880a
commit 662e6a6e0f
3 changed files with 57 additions and 14 deletions
+2
View File
@@ -270,6 +270,8 @@ class RuntimeController:
try:
emb_config = self.config.models.embeddings or {}
model_path = self.base_dir / emb_config.get("path", "models/all-MiniLM-L6-v2")
if not model_path.exists() and not Path(emb_config.get("path", "")).is_absolute():
model_path = self.base_dir / "models" / emb_config.get("path", "all-MiniLM-L6-v2")
if not model_path.exists():
print(f"Memory init skipped: embeddings model not found at {model_path}")
self._memory_interface = None