From 84de5f8c11c81e104f4707caee5ad3be829626c2 Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 5 Nov 2025 15:00:51 +0800 Subject: [PATCH] * [misc] change zai-deleteKnowledgeItem param from key to content id. --- module/zai/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/zai/model.php b/module/zai/model.php index a18c812b3c..82c127e613 100644 --- a/module/zai/model.php +++ b/module/zai/model.php @@ -477,12 +477,12 @@ class zaiModel extends model * * @access public * @param string $memoryID - * @param string $key + * @param string $contentID * @return bool */ - public function deleteKnowledgeItem(string $memoryID, string $key): bool + public function deleteKnowledgeItem(string $memoryID, string $contentID): bool { - $result = $this->callAdminAPI("/v8/memories/$memoryID/contents/_$key", 'DELETE'); + $result = $this->callAdminAPI("/v8/memories/$memoryID/contents/$contentID", 'DELETE'); return $result['result'] === 'success'; }