传入群信息,用于记录群的总结次数
This commit is contained in:
@@ -31,7 +31,7 @@ def message_summary_dify(content, sender: str = None):
|
|||||||
# 准备请求数据
|
# 准备请求数据
|
||||||
data = {
|
data = {
|
||||||
"inputs": {},
|
"inputs": {},
|
||||||
"query": f"请根据以下群聊记录生成一份精华总结:\n\n{content_compress}",
|
"query": f"请根据以下{sender}群聊记录生成一份精华总结:\n\n{content_compress}",
|
||||||
"response_mode": "blocking", # 使用阻塞模式,直接获取完整响应
|
"response_mode": "blocking", # 使用阻塞模式,直接获取完整响应
|
||||||
"conversation_id": "",
|
"conversation_id": "",
|
||||||
"user": sender if sender is not None else "message_summary_bot",
|
"user": sender if sender is not None else "message_summary_bot",
|
||||||
|
|||||||
Reference in New Issue
Block a user