testManifestJson function

String testManifestJson({
  1. bool withSmall = true,
  2. String manifestVersion = '2026-09-17',
})

A schema-1 manifest of two small models whose files are testModelBytes: test-4b (recommended, 7000 MB of RAM, 3800 available) and, with withSmall, test-2b (5500 and 2000). Each needs 100 MB of free disk; the display name is the id.

Implementation

String testManifestJson({bool withSmall = true, String manifestVersion = '2026-09-17'}) => jsonEncode({
  'schemaVersion': 1,
  'manifestVersion': manifestVersion,
  'models': [
    _testEntry('test-4b', 'test-4b-Q5_K_M.gguf', recommended: true, ram: 7000, available: 3800),
    if (withSmall) _testEntry('test-2b', 'test-2b-Q5_K_M.gguf', recommended: false, ram: 5500, available: 2000),
  ],
});