From 5c2242d553ff7a6ae3dc2170664b478066d1a3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A0=E7=A3=8A?= Date: Tue, 8 Apr 2025 20:23:22 +0800 Subject: [PATCH] support memory oceanbase --- main/xiaozhi-server/core/providers/memory/oceanbase/oceanbase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main/xiaozhi-server/core/providers/memory/oceanbase/oceanbase.py b/main/xiaozhi-server/core/providers/memory/oceanbase/oceanbase.py index ee56bbfd9..95c6294ba 100644 --- a/main/xiaozhi-server/core/providers/memory/oceanbase/oceanbase.py +++ b/main/xiaozhi-server/core/providers/memory/oceanbase/oceanbase.py @@ -27,6 +27,7 @@ class MemoryProvider(MemoryProviderBase): self.db_name = config.get("database", "xiaozhi") self.table_name = config.get("table_name", "xiaozhi") self.model_path = config.get("model_path", "models/all-MiniLM-L6-v2") + self.model_path = os.path.abspath(self.model_path) if not os.path.exists(self.model_path): raise Exception(f"模型路径不存在,请下载到: {self.model_path}") print(f"连接到 oceanbase 服务: {self.uri}")