feat:修改maisaka

This commit is contained in:
SengokuCola
2026-03-23 17:55:39 +08:00
parent 84551460e6
commit e7ca3142e9
20 changed files with 257 additions and 748 deletions

View File

@@ -55,7 +55,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.1.0"
CONFIG_VERSION: str = "8.1.2"
MODEL_CONFIG_VERSION: str = "1.12.0"
logger = get_logger("config")

View File

@@ -1582,33 +1582,23 @@ class MaiSakaConfig(ConfigBase):
)
"""启用文件列表工具"""
enable_qq_tools: bool = Field(
show_analyze_cognition_prompt: bool = Field(
default=False,
json_schema_extra={
"x-widget": "switch",
"x-icon": "users",
"x-icon": "terminal",
},
)
"""启用 QQ 工具(获取聊天记录、发送消息等)"""
"""是否在 CLI 中显示 analyze_cognition 的 Prompt"""
qq_api_base_url: str = Field(
default="",
show_analyze_timing_prompt: bool = Field(
default=False,
json_schema_extra={
"x-widget": "input",
"x-icon": "server",
"x-widget": "switch",
"x-icon": "terminal",
},
)
"""QQ API 基地址"""
qq_api_key: str = Field(
default="",
json_schema_extra={
"x-widget": "input",
"x-icon": "key",
},
)
"""QQ API 密钥"""
"""是否在 CLI 中显示 analyze_timing 的 Prompt"""
class PluginRuntimeConfig(ConfigBase):
"""插件运行时配置类"""