feat(reminder): 增强提醒功能,可将“我”识别为目标用户

通过向LLM提示词中传递消息发送者昵称,系统现在能够正确解析包含第一人称代词(如“我”)的提醒任务。这解决了之前无法为用户设置“提醒我”这类个人提醒的问题,使其交互更加自然。

此外,还优化了`@user`插件中生成提醒内容的提示词,明确指示LLM不要在回复中包含`@`或用户名,以避免系统自动@后出现重复的用户名,提升了提醒消息的质量。
This commit is contained in:
tt-P607
2025-09-10 17:10:24 +08:00
committed by Windpicker-owo
parent 96455526b4
commit ff35586f84
3 changed files with 21 additions and 9 deletions

View File

@@ -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,