remove:无用文件

This commit is contained in:
SengokuCola
2026-04-07 18:41:37 +08:00
parent 2233ee1af4
commit 297b1bf5e3
6 changed files with 15 additions and 726 deletions

View File

@@ -56,7 +56,7 @@ CONFIG_DIR: Path = PROJECT_ROOT / "config"
BOT_CONFIG_PATH: Path = (CONFIG_DIR / "bot_config.toml").resolve().absolute()
MODEL_CONFIG_PATH: Path = (CONFIG_DIR / "model_config.toml").resolve().absolute()
MMC_VERSION: str = "1.0.0"
CONFIG_VERSION: str = "8.5.0"
CONFIG_VERSION: str = "8.5.1"
MODEL_CONFIG_VERSION: str = "1.13.1"
logger = get_logger("config")
@@ -74,21 +74,18 @@ class Config(ConfigBase):
personality: PersonalityConfig = Field(default_factory=PersonalityConfig)
"""人格配置类"""
chat: ChatConfig = Field(default_factory=ChatConfig)
"""聊天配置类"""
visual: VisualConfig = Field(default_factory=VisualConfig)
"""视觉配置类"""
expression: ExpressionConfig = Field(default_factory=ExpressionConfig)
"""表达配置类"""
chat: ChatConfig = Field(default_factory=ChatConfig)
"""聊天配置类"""
memory: MemoryConfig = Field(default_factory=MemoryConfig)
"""记忆配置类"""
relationship: RelationshipConfig = Field(default_factory=RelationshipConfig)
"""关系配置类"""
message_receive: MessageReceiveConfig = Field(default_factory=MessageReceiveConfig)
"""消息接收配置类"""

View File

@@ -173,21 +173,6 @@ class VisualConfig(ConfigBase):
"""_wrap_识图提示词不建议修改"""
class RelationshipConfig(ConfigBase):
"""关系配置类"""
__ui_parent__ = "debug"
enable_relationship: bool = Field(
default=True,
json_schema_extra={
"x-widget": "switch",
"x-icon": "heart",
},
)
"""是否启用关系系统,关系系统被移除,此部分配置暂时无效"""
class TalkRulesItem(ConfigBase):
platform: str = ""
"""平台与ID一起留空表示全局"""
@@ -243,6 +228,16 @@ class ChatConfig(ConfigBase):
},
)
"""上下文长度"""
planner_interrupt_max_consecutive_count: int = Field(
default=2,
ge=0,
json_schema_extra={
"x-widget": "input",
"x-icon": "pause-circle",
},
)
"""Planner 连续被新消息打断的最大次数0 表示不启用打断"""
plan_reply_log_max_per_chat: int = Field(
default=1024,
@@ -1465,16 +1460,6 @@ class MaiSakaConfig(ConfigBase):
)
"""MaiSaka 使用的用户名称"""
planner_interrupt_max_consecutive_count: int = Field(
default=2,
ge=0,
json_schema_extra={
"x-widget": "input",
"x-icon": "pause-circle",
},
)
"""Planner 连续被新消息打断的最大次数0 表示不启用打断"""
tool_filter_task_name: str = Field(
default="utils",
json_schema_extra={