isModelInstalled static method

Future<bool> isModelInstalled(
  1. ModelSpec spec
)

Checks if a model specification is fully installed and valid

Implementation

static Future<bool> isModelInstalled(ModelSpec spec) async {
  // Check SharedPreferences first
  if (!await ModelPreferencesManager.isModelInstalled(spec)) {
    return false;
  }

  // Validate all files exist and are valid
  return await ModelFileSystemManager.validateModelFiles(spec);
}