feat:wait可被打断,不推荐修改私聊planner

This commit is contained in:
SengokuCola
2026-01-06 22:40:46 +08:00
parent 92a7836103
commit a8c25cdc15
6 changed files with 71 additions and 32 deletions

View File

@@ -57,7 +57,7 @@ TEMPLATE_DIR = os.path.join(PROJECT_ROOT, "template")
# 考虑到实际上配置文件中的mai_version是不会自动更新的,所以采用硬编码
# 对该字段的更新请严格参照语义化版本规范https://semver.org/lang/zh-CN/
MMC_VERSION = "0.12.1"
MMC_VERSION = "0.12.2"
def get_key_comment(toml_table, key):

View File

@@ -57,9 +57,6 @@ class PersonalityConfig(ConfigBase):
visual_style: str = ""
"""图片提示词"""
private_plan_style: str = ""
"""私聊说话规则,行为风格"""
states: list[str] = field(default_factory=lambda: [])
"""状态列表用于随机替换personality"""
@@ -713,8 +710,8 @@ class DebugConfig(ConfigBase):
class ExperimentalConfig(ConfigBase):
"""实验功能配置类"""
enable_friend_chat: bool = False
"""是否启用好友聊天"""
private_plan_style: str = ""
"""私聊说话规则,行为风格(实验性功能)"""
chat_prompts: list[str] = field(default_factory=lambda: [])
"""
@@ -904,6 +901,13 @@ class DreamConfig(ConfigBase):
return False
dream_visible: bool = False
"""
做梦结果是否存储到上下文
- True: 将梦境发送给配置的用户后,也会存储到聊天上下文中,在后续对话中可见
- False: 仅发送梦境但不存储,不在后续对话上下文中出现
"""
def __post_init__(self):
"""验证配置值"""
if self.interval_minutes < 1: