mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
support memory oceanbase
This commit is contained in:
parent
d9337657e1
commit
5c2242d553
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ class MemoryProvider(MemoryProviderBase):
|
||||||
self.db_name = config.get("database", "xiaozhi")
|
self.db_name = config.get("database", "xiaozhi")
|
||||||
self.table_name = config.get("table_name", "xiaozhi")
|
self.table_name = config.get("table_name", "xiaozhi")
|
||||||
self.model_path = config.get("model_path", "models/all-MiniLM-L6-v2")
|
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):
|
if not os.path.exists(self.model_path):
|
||||||
raise Exception(f"模型路径不存在,请下载到: {self.model_path}")
|
raise Exception(f"模型路径不存在,请下载到: {self.model_path}")
|
||||||
print(f"连接到 oceanbase 服务: {self.uri}")
|
print(f"连接到 oceanbase 服务: {self.uri}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue