add dota2 match history boundary for xiaoniu
This commit is contained in:
@@ -399,6 +399,10 @@ class AIAutoResponsePlugin(MessagePluginInterface):
|
||||
recent_text = "\n".join(context.get("recent_messages", [])) or "暂无"
|
||||
reply_mode = context.get("reply_mode", "social_short")
|
||||
length_rule = self._build_length_rule(reply_mode)
|
||||
group_profile = context.get("group_profile", {}) or {}
|
||||
extra_rule = ""
|
||||
if group_profile.get("knowledge_domain") == "dota":
|
||||
extra_rule = "13. 如果对方问的是 Dota2 最近战绩、实时战绩、最新对局数据,你要委婉说明现在没法提取这类数据,只能聊理解和常识,不要硬编。\n"
|
||||
return (
|
||||
f"当前群聊消息:\n{recent_text}\n\n"
|
||||
f"当前发言:{context.get('current_message', '')}\n"
|
||||
@@ -424,6 +428,7 @@ class AIAutoResponsePlugin(MessagePluginInterface):
|
||||
f"10. 把这次回复当作真人聊天里的第一反应,先只给第一层结论,不要主动补第二层解释。\n"
|
||||
f"11. 如果一句话已经够了,就立刻停,不要为了完整而补充。\n"
|
||||
f"12. 回答时优先服从当前群画像里的知识域和回答风格,不要跨领域乱发挥。\n"
|
||||
f"{extra_rule}"
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user