feat:添加timing gate平滑

This commit is contained in:
SengokuCola
2026-05-07 16:16:31 +08:00
parent fd51632da8
commit f41051f836
5 changed files with 332 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ MODEL_CONFIG_PATH: Path = (CONFIG_DIR / "model_config.toml").resolve().absolute(
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.11"
CONFIG_VERSION: str = "8.10.12"
MODEL_CONFIG_VERSION: str = "1.16.0"
logger = get_logger("config")

View File

@@ -421,6 +421,22 @@ class ChatConfig(ConfigBase):
)
"""Planner 连续被新消息打断的最大次数0 表示不启用打断"""
timing_gate_non_continue_cooldown_seconds: float = Field(
default=0,
ge=0,
json_schema_extra={
"label": {
"zh_CN": "Timing Gate 非 continue 冷却",
"en_US": "Timing Gate non-continue cooldown",
"ja_JP": "Timing Gate 非 continue クールダウン",
},
"x-widget": "input",
"x-icon": "timer",
"advanced": True,
},
)
"""Timing Gate 返回 wait/no_reply 时的最小窗口秒数0 表示不启用冷却"""
group_chat_prompt: str = Field(
default=(
"你正在qq群里聊天下面是群里正在聊的内容其中包含聊天记录和聊天中的图片和表情包。\n"