feat: enable move operations for all model types and remove unsupported methods from specific clients

This commit is contained in:
Will Miao
2025-08-04 19:51:02 +08:00
parent 342a722991
commit fae2e274fd
5 changed files with 102 additions and 143 deletions

View File

@@ -5,26 +5,4 @@ import { showToast } from '../utils/uiHelpers.js';
* Embedding-specific API client
*/
export class EmbeddingApiClient extends BaseModelApiClient {
/**
* Move a single embedding to target path
*/
async moveSingleModel(filePath, targetPath) {
if (filePath.substring(0, filePath.lastIndexOf('/')) === targetPath) {
showToast('Embedding is already in the selected folder', 'info');
return null;
}
// TODO: Implement embedding move endpoint when available
showToast('Moving embeddings is not yet implemented', 'info');
return null;
}
/**
* Move multiple embeddings to target path
*/
async moveBulkModels(filePaths, targetPath) {
// TODO: Implement embedding bulk move endpoint when available
showToast('Moving embeddings is not yet implemented', 'info');
return [];
}
}