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() {
1125 * @returns {Promise<void>}1125 * @returns {Promise<void>}
1126 */1126 */
1127async function deleteVectorItems(collectionId, hashes) {1127async function deleteVectorItems(collectionId, hashes) {
1128 const args = await getAdditionalArgs([]);
1128 const response = await fetch('/api/vector/delete', {1129 const response = await fetch('/api/vector/delete', {
1129 method: 'POST',1130 method: 'POST',
1130 headers: getRequestHeaders(),1131 headers: getRequestHeaders(),
1131 body: JSON.stringify({1132 body: JSON.stringify({
1132 ...getVectorsRequestBody(),1133 ...getVectorsRequestBody(args),
1133 collectionId: collectionId,1134 collectionId: collectionId,
1134 hashes: hashes,1135 hashes: hashes,
1135 source: settings.source,1136 source: settings.source,