remove:移除表达反思功能

This commit is contained in:
SengokuCola
2026-03-11 20:52:54 +08:00
parent 8b9cda4296
commit 8f13c4804b
10 changed files with 2 additions and 723 deletions

View File

@@ -184,7 +184,7 @@ def _migrate_expression_groups(expr: dict[str, Any]) -> bool:
def _migrate_target_item_list(parent: dict[str, Any], key: str) -> bool:
"""
将 list[str] 的 "platform:id:type" 迁移为 list[{platform,item_id,rule_type}]
用于memory.global_memory_blacklist / expression.allow_reflect 等。
用于memory.global_memory_blacklist 等。
"""
raw = _as_list(parent.get(key))
if raw is None:

View File

@@ -641,33 +641,6 @@ class ExpressionConfig(ConfigBase):
)
"""表达方式自动检查的额外自定义评估标准"""
expression_manual_reflect: bool = Field(
default=False,
json_schema_extra={
"x-widget": "switch",
"x-icon": "hand",
},
)
"""是否启用手动表达优化"""
manual_reflect_operator_id: Optional[TargetItem] = Field(
default=None,
json_schema_extra={
"x-widget": "custom",
"x-icon": "user-cog",
},
)
"""手动表达优化操作员ID"""
allow_reflect: list[TargetItem] = Field(
default_factory=list,
json_schema_extra={
"x-widget": "custom",
"x-icon": "shield",
},
)
"""允许进行表达反思的聊天流ID列表只有在此列表中的聊天流才会提出问题并跟踪。如果列表为空则所有聊天流都可以进行表达反思前提是reflect为true"""
all_global_jargon: bool = Field(
default=True,
json_schema_extra={