From 0252daf82a70cc83255704d45b16ac1493201285 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Sun, 3 May 2026 15:36:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E8=AF=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/A_memorix/core/utils/web_import_manager.py | 1 - src/config/config.py | 2 +- src/config/model_configs.py | 7 ++++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/A_memorix/core/utils/web_import_manager.py b/src/A_memorix/core/utils/web_import_manager.py index 1ee93418..a4db5c54 100644 --- a/src/A_memorix/core/utils/web_import_manager.py +++ b/src/A_memorix/core/utils/web_import_manager.py @@ -3259,7 +3259,6 @@ class ImportTaskManager: for task_name in [ "lpmm_entity_extract", "lpmm_rdf_build", - "embedding", "replyer", "utils", "planner", diff --git a/src/config/config.py b/src/config/config.py index b7994e5f..1be32621 100644 --- a/src/config/config.py +++ b/src/config/config.py @@ -57,7 +57,7 @@ MODEL_CONFIG_PATH: Path = (CONFIG_DIR / "model_config.toml").resolve().absolute( LEGACY_ENV_PATH: Path = (PROJECT_ROOT / ".env").resolve().absolute() MMC_VERSION: str = "1.0.0" CONFIG_VERSION: str = "8.9.20" -MODEL_CONFIG_VERSION: str = "1.14.5" +MODEL_CONFIG_VERSION: str = "1.14.6" logger = get_logger("config") diff --git a/src/config/model_configs.py b/src/config/model_configs.py index caf7e5c7..447eadf2 100644 --- a/src/config/model_configs.py +++ b/src/config/model_configs.py @@ -343,7 +343,12 @@ class ModelInfo(ConfigBase): "x-icon": "sliders", }, ) - """额外参数 (用于API调用时的额外配置)""" + """额外参数 (用于API调用时的额外配置)。 + OpenAI 兼容客户端会将该字典拆分为请求附加项:headers 会作为请求头传入,query 会作为 URL 查询参数传入,body 会合并到请求体。 + 未放入 headers/query/body 的普通键,也会作为请求体额外字段传入;例如 {enable_thinking = "false"} 会传为请求体字段 enable_thinking。 + 该字段不会以 extra_params 这个键整体发送给模型服务商。 + temperature 和 max_tokens 也可写在此处作为模型级默认值,但更推荐使用同名独立配置项。 + Gemini 客户端会按自身支持的字段筛选并映射到 GenerateContentConfig、EmbedContentConfig 或音频请求配置中。""" def model_post_init(self, context: Any = None): if not self.model_identifier: