优化关键词

This commit is contained in:
liuwei
2025-05-21 17:27:09 +08:00
parent 1de44bac44
commit 8f88e1bd9b

View File

@@ -172,7 +172,7 @@ class AIAutoResponsePlugin(MessagePluginInterface):
context = "\n".join(context_messages)
# 构建提示词
prompt = f"请根据以下群聊上下文,生成一个自然、友好的回复。\n\n上下文:\n{context}\n\n当前话题类型:{topic_type or '一般聊天'}\n\n请生成回复:"
prompt = f"请根据以下群聊上下文,生成一个自然、友好的回复,主要关注最后一句消息,前面的作为参考信息\n上下文:\n{context}\n\n当前话题类型:{topic_type or '一般聊天'}\n\n请生成回复:"
# 调用DIFY API
headers = {