Fix KoboldCpp vector hash deletion (#5508)

752ae243b9027e46ca19bc9fc29e5cce199989c4

柚柚子 <yuaiccc@aliyun.com>

Signed
1 files changed, +2 -1Ignore whitespace
public/scripts/extensions/vectors/index.js+2 -1
@@ -1125,11 +1125,12 @@ function throwIfSourceInvalid() {
11251125 * @returns {Promise<void>}
11261126 */
11271127async function deleteVectorItems(collectionId, hashes) {
1128+ const args = await getAdditionalArgs([]);
11281129 const response = await fetch('/api/vector/delete', {
11291130 method: 'POST',
11301131 headers: getRequestHeaders(),
11311132 body: JSON.stringify({
11321133 ...getVectorsRequestBody(args),
11331134 collectionId: collectionId,
11341135 hashes: hashes,
11351136 source: settings.source,