feat(download): add configurable base model download exclusions

This commit is contained in:
Will Miao
2026-03-26 23:06:14 +08:00
parent 5b065b47d4
commit a5191414cc
22 changed files with 988 additions and 4 deletions

View File

@@ -492,7 +492,7 @@ export class DownloadManager {
console.error('WebSocket error:', error);
};
await this.apiClient.downloadModel(
const response = await this.apiClient.downloadModel(
modelId,
versionId,
modelRoot,
@@ -502,6 +502,16 @@ export class DownloadManager {
source
);
if (response?.skipped) {
this.loadingManager.setStatus(translate('modals.download.status.finalizing'));
updateProgress(100, 0, displayName);
showToast('toast.loras.downloadSkippedByBaseModel', { baseModel: response.base_model || 'Unknown' }, 'warning');
if (closeModal) {
modalManager.closeModal('downloadModal');
}
return true;
}
showToast('toast.loras.downloadCompleted', {}, 'success');
if (closeModal) {