feat:可以关闭回复前黑话自动提取

This commit is contained in:
SengokuCola
2025-12-18 17:34:32 +08:00
parent 11dd9ece13
commit 216c51d7a2
5 changed files with 43 additions and 11 deletions

View File

@@ -325,6 +325,9 @@ class ExpressionConfig(ConfigBase):
all_global_jargon: bool = False
"""是否将所有新增的jargon项目默认为全局is_global=Truechat_id记录第一次存储时的id。注意此功能关闭后已经记录的全局黑话不会改变需要手动删除"""
enable_jargon_explanation: bool = True
"""是否在回复前尝试对上下文中的黑话进行解释关闭可减少一次LLM调用仅影响回复前的黑话匹配与解释不影响黑话学习"""
def _parse_stream_config_to_chat_id(self, stream_config_str: str) -> Optional[str]:
"""
解析流配置字符串并生成对应的 chat_id