| 1125 | * @returns {Promise<void>} | 1125 | * @returns {Promise<void>} |
| 1126 | */ | 1126 | */ |
| 1127 | async function deleteVectorItems(collectionId, hashes) { | 1127 | async 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, |