isAnyModelInstalled method

  1. @override
Future<bool> isAnyModelInstalled(
  1. ModelManagementType type
)
override

Checks if ANY model of the given type is installed

Implementation

@override
Future<bool> isAnyModelInstalled(ModelManagementType type) async {
  await _ensureInitialized();

  try {
    return await ModelPreferencesManager.isAnyModelInstalled(type);
  } catch (e) {
    debugPrint('UnifiedModelManager: Failed to check if any model is installed for type $type: $e');
    return false;
  }
}