refactor: centralize resetAndReload functionality in baseModelApi

This commit is contained in:
Will Miao
2025-07-25 17:48:02 +08:00
parent 7f205cdcc8
commit a3d6e62035
13 changed files with 21 additions and 56 deletions

View File

@@ -22,10 +22,6 @@ export async function loadMoreLoras(resetPage = false, updateFolders = false) {
return loraApiClient.loadMoreWithVirtualScroll(resetPage, updateFolders);
}
export async function resetAndReload(updateFolders = false) {
return loraApiClient.loadMoreWithVirtualScroll(true, updateFolders);
}
// LoRA-specific functions that don't have common equivalents
export async function fetchModelDescription(modelId, filePath) {
try {