tune xiaoniu address style by group
This commit is contained in:
@@ -413,11 +413,13 @@ class AIAutoResponsePlugin(MessagePluginInterface):
|
||||
group_profile = context.get("group_profile", {}) or {}
|
||||
speaker_name = str(context.get("speaker_name_clean", "") or "").strip()
|
||||
trigger_type = str(context.get("trigger_type", "none") or "none")
|
||||
name_rule = "13. 默认不要带对方昵称,直接接话。"
|
||||
address_style = str(group_profile.get("address_style", "低频称呼,默认直接接话") or "低频称呼,默认直接接话")
|
||||
name_rule = f"13. 称呼风格遵守当前群的要求:{address_style}。默认不要带对方昵称,直接接话。"
|
||||
if speaker_name and trigger_type in {"at_trigger", "directed_question", "social_call"}:
|
||||
name_rule = (
|
||||
f"13. 这次可以偶尔自然带一下对方称呼“{speaker_name}”,但不是必须。"
|
||||
f"如果要带,位置不要固定在句首,也不要每次都带,更不要像客服点名。"
|
||||
f"13. 称呼风格遵守当前群的要求:{address_style}。"
|
||||
f"这次可以视场景偶尔自然带一下对方称呼“{speaker_name}”,但不是必须。"
|
||||
f"如果要带,位置不要固定在句首,也不要每次都带,更不要像客服点名或脚本播报。"
|
||||
)
|
||||
extra_rule = ""
|
||||
if group_profile.get("knowledge_domain") == "dota":
|
||||
|
||||
Reference in New Issue
Block a user