Fix KoboldCpp vector hash deletion (#5508)

This commit is contained in:
柚柚子
2026-04-24 04:03:59 +08:00
committed by GitHub
parent efbff34342
commit 752ae243b9
+2 -1
View File
@@ -1125,11 +1125,12 @@ function throwIfSourceInvalid() {
* @returns {Promise<void>}
*/
async function deleteVectorItems(collectionId, hashes) {
const args = await getAdditionalArgs([]);
const response = await fetch('/api/vector/delete', {
method: 'POST',
headers: getRequestHeaders(),
body: JSON.stringify({
...getVectorsRequestBody(),
...getVectorsRequestBody(args),
collectionId: collectionId,
hashes: hashes,
source: settings.source,