feat(reminder): 增强提醒功能,可将“我”识别为目标用户
通过向LLM提示词中传递消息发送者昵称,系统现在能够正确解析包含第一人称代词(如“我”)的提醒任务。这解决了之前无法为用户设置“提醒我”这类个人提醒的问题,使其交互更加自然。 此外,还优化了`@user`插件中生成提醒内容的提示词,明确指示LLM不要在回复中包含`@`或用户名,以避免系统自动@后出现重复的用户名,提升了提醒消息的质量。
This commit is contained in:
@@ -178,6 +178,7 @@ class HeartFCMessageReceiver:
|
||||
metadata = {
|
||||
"type": "reminder",
|
||||
"user_id": reminder_event.user_id,
|
||||
"sender_name": userinfo.user_nickname, # 添加发送者昵称
|
||||
"platform": chat.platform,
|
||||
"chat_id": chat.stream_id,
|
||||
"content": reminder_event.content,
|
||||
|
||||
Reference in New Issue
Block a user