groove-dev 0.26.5 → 0.26.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -298,6 +298,18 @@ export function createApi(app, daemon) {
298
298
  res.json({ recommendedQuantization: quant, ramGb });
299
299
  });
300
300
 
301
+ app.get('/api/models/recommended', (req, res) => {
302
+ const hardware = OllamaProvider.getSystemHardware();
303
+ const catalog = OllamaProvider.catalog;
304
+ // Filter to models that fit in RAM (with 15% headroom) and sort by quality
305
+ const maxRam = hardware.totalRamGb * 0.85;
306
+ const recommended = catalog
307
+ .filter((m) => m.ramGb <= maxRam)
308
+ .sort((a, b) => b.ramGb - a.ramGb) // Biggest that fits = best quality
309
+ .slice(0, 12);
310
+ res.json({ models: recommended, hardware });
311
+ });
312
+
301
313
  app.get('/api/llama/status', (req, res) => {
302
314
  res.json(daemon.llamaServer.getStatus());
303
315
  });