downloadModel method
Downloads a model without progress tracking
Implementation
@override
Future<void> downloadModel(ModelSpec spec, {String? token}) async {
await _ensureInitialized();
debugPrint('UnifiedModelManager: Starting download - ${spec.name}');
try {
await for (final _ in _downloadModelWithProgress(spec, token: token)) {
// Just consume the stream without emitting progress
}
debugPrint('UnifiedModelManager: Download completed - ${spec.name}');
// Set as active model after successful download (same as Modern API)
setActiveModel(spec);
} catch (e) {
debugPrint('UnifiedModelManager: Download failed - ${spec.name}: $e');
rethrow;
}
}