feat;私聊回滚wait,添加记忆总结模型配置

This commit is contained in:
SengokuCola
2026-05-08 02:21:27 +08:00
parent 197351d469
commit 7bdbdec157
13 changed files with 371 additions and 92 deletions

View File

@@ -58,7 +58,7 @@ LEGACY_ENV_PATH: Path = (PROJECT_ROOT / ".env").resolve().absolute()
A_MEMORIX_LEGACY_CONFIG_PATH: Path = (CONFIG_DIR / "a_memorix.toml").resolve().absolute()
MMC_VERSION: str = "1.0.0-pre.14"
CONFIG_VERSION: str = "8.10.15"
MODEL_CONFIG_VERSION: str = "1.16.0"
MODEL_CONFIG_VERSION: str = "1.16.1"
logger = get_logger("config")

View File

@@ -25,6 +25,13 @@ DEFAULT_TASK_CONFIG_TEMPLATES: dict[str, dict[str, Any]] = {
"slow_threshold": 15.0,
"selection_strategy": "random",
},
"memory": {
"model_list": [],
"max_tokens": 4096,
"temperature": 0.5,
"slow_threshold": 30.0,
"selection_strategy": "random",
},
"replyer": {
"model_list": ["deepseek-v4-pro-think", "deepseek-v4-pro-nonthink"],
"max_tokens": 4096,

View File

@@ -440,6 +440,16 @@ class ModelTaskConfig(ConfigBase):
)
"""规划模型配置"""
memory: TaskConfig = Field(
default_factory=TaskConfig,
json_schema_extra={
"x-widget": "custom",
"x-icon": "brain",
"advanced": True,
},
)
"""记忆模型配置,用于长期记忆总结、抽取、写回等高质量记忆任务;留空时由调用方按需回退"""
utils: TaskConfig = Field(
default_factory=TaskConfig,
json_schema_extra={