From cf4605ae0fcc9a1abcd3c6b8a7534a2d02e81e50 Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 13 Mar 2025 15:51:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5dify=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dify/dify_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dify/dify_chat.py b/dify/dify_chat.py index 7806f01..eacf9ed 100644 --- a/dify/dify_chat.py +++ b/dify/dify_chat.py @@ -143,7 +143,7 @@ class DifyChat: data = { "query": query, "sys.files": [], - "sys.user_id": user_id, + "user": user_id, "response_mode": "streaming", # 使用流式响应 "conversation_id": session_id # 使用会话ID保持上下文 }