pref:优化webui界面,增加prompt模板元信息
This commit is contained in:
@@ -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.11"
|
||||
CONFIG_VERSION: str = "8.10.6"
|
||||
CONFIG_VERSION: str = "8.10.7"
|
||||
MODEL_CONFIG_VERSION: str = "1.15.3"
|
||||
|
||||
logger = get_logger("config")
|
||||
|
||||
@@ -30,7 +30,7 @@ class ExampleConfig(ConfigBase):
|
||||
class BotConfig(ConfigBase):
|
||||
"""机器人配置类"""
|
||||
|
||||
__ui_label__ = "基本信息"
|
||||
__ui_label__ = "基础"
|
||||
__ui_icon__ = "bot"
|
||||
|
||||
platform: str = Field(
|
||||
@@ -87,6 +87,7 @@ class BotConfig(ConfigBase):
|
||||
class PersonalityConfig(ConfigBase):
|
||||
"""人格配置类"""
|
||||
|
||||
__ui_parent__ = "bot"
|
||||
__ui_label__ = "人格"
|
||||
__ui_icon__ = "user-circle"
|
||||
|
||||
@@ -1299,16 +1300,6 @@ class EmojiConfig(ConfigBase):
|
||||
)
|
||||
"""是否启用表情包过滤,只有符合该要求的表情包才会被保存"""
|
||||
|
||||
filtration_prompt: str = Field(
|
||||
default="符合公序良俗",
|
||||
json_schema_extra={
|
||||
"advanced": True,
|
||||
"x-widget": "input",
|
||||
"x-icon": "shield",
|
||||
},
|
||||
)
|
||||
"""表情包过滤要求,只有符合该要求的表情包才会被保存"""
|
||||
|
||||
|
||||
class KeywordRuleConfig(ConfigBase):
|
||||
"""关键词规则配置类"""
|
||||
|
||||
Reference in New Issue
Block a user