From 1083698a1ff37bc2e48481c63866190b6a751df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=90=E5=8A=9B=E9=BD=90?= <162269739+lanceyq@users.noreply.github.com> Date: Wed, 7 Jan 2026 13:57:47 +0800 Subject: [PATCH] [fix]Remove the LLM (#45) --- api/app/models/data_config_model.py | 1 - api/app/repositories/data_config_repository.py | 2 +- api/app/services/memory_storage_service.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/api/app/models/data_config_model.py b/api/app/models/data_config_model.py index 67d789ea..06f87cb2 100644 --- a/api/app/models/data_config_model.py +++ b/api/app/models/data_config_model.py @@ -25,7 +25,6 @@ class DataConfig(Base): llm_id = Column(String, nullable=True, comment="LLM模型配置ID") embedding_id = Column(String, nullable=True, comment="嵌入模型配置ID") rerank_id = Column(String, nullable=True, comment="重排序模型配置ID") - llm = Column(String, nullable=True, comment="LLM模型配置ID") # 记忆萃取引擎配置 enable_llm_dedup_blockwise = Column(Boolean, default=True, comment="启用LLM决策去重") diff --git a/api/app/repositories/data_config_repository.py b/api/app/repositories/data_config_repository.py index e5fe35ba..7843acc2 100644 --- a/api/app/repositories/data_config_repository.py +++ b/api/app/repositories/data_config_repository.py @@ -327,7 +327,7 @@ class DataConfigRepository: # 更新字段映射 field_mapping = { # 模型选择 - "llm_id": "llm", + "llm_id": "llm_id", "embedding_id": "embedding_id", "rerank_id": "rerank_id", # 记忆萃取引擎 diff --git a/api/app/services/memory_storage_service.py b/api/app/services/memory_storage_service.py index 55d96082..cf7ff74a 100644 --- a/api/app/services/memory_storage_service.py +++ b/api/app/services/memory_storage_service.py @@ -185,7 +185,6 @@ class DataConfigService: # 数据配置服务类(PostgreSQL) "llm_id": config.llm_id, "embedding_id": config.embedding_id, "rerank_id": config.rerank_id, - "llm": config.llm, "enable_llm_dedup_blockwise": config.enable_llm_dedup_blockwise, "enable_llm_disambiguation": config.enable_llm_disambiguation, "deep_retrieval": config.deep_retrieval,