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.
- package/node_modules/@groove-dev/daemon/src/api.js +12 -0
- package/node_modules/@groove-dev/gui/dist/assets/{index-BiwUzEwA.js → index-BdRue2C0.js} +50 -50
- package/node_modules/@groove-dev/gui/dist/assets/{index-DvNB4K83.css → index-DVRmIjTA.css} +1 -1
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/src/views/models.jsx +92 -8
- package/package.json +1 -1
- package/packages/daemon/src/api.js +12 -0
- package/packages/gui/dist/assets/{index-BiwUzEwA.js → index-BdRue2C0.js} +50 -50
- package/packages/gui/dist/assets/{index-DvNB4K83.css → index-DVRmIjTA.css} +1 -1
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/src/views/models.jsx +92 -8
|
@@ -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
|
});
|