From 3ee9ca749d7acdb1f352f1e5db1e3c3ba41f1aa5 Mon Sep 17 00:00:00 2001 From: liuhua <10215101452@stu.ecnu.edu.cn> Date: Mon, 2 Dec 2024 11:40:20 +0800 Subject: [PATCH] Fix the bug that prevented modifying `dataset_ids` (#3784) ### What problem does this PR solve? Fix the bug that prevented modifying `dataset_ids`. #3772 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn> --- api/apps/sdk/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/sdk/chat.py b/api/apps/sdk/chat.py index aa717a875..0f7509aac 100644 --- a/api/apps/sdk/chat.py +++ b/api/apps/sdk/chat.py @@ -161,7 +161,7 @@ def update(tenant_id,chat_id): return get_error_data_result("`datasets` can't be empty") if ids: for kb_id in ids: - kbs = KnowledgebaseService.accessible(kb_id=chat_id, user_id=tenant_id) + kbs = KnowledgebaseService.accessible(kb_id=kb_id, user_id=tenant_id) if not kbs: return get_error_data_result(f"You don't own the dataset {kb_id}") kbs = KnowledgebaseService.query(id=kb_id)