* [misc] change zai-deleteKnowledgeItem param from key to content id.

This commit is contained in:
sunhao
2025-12-02 16:32:04 +08:00
parent 6d9a7ccdbe
commit 84de5f8c11
+3 -3
View File
@@ -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';
}