metrillm 0.2.3 → 0.2.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -6210,14 +6210,17 @@ async function listModels2() {
6210
6210
  throw new Error(`LM Studio list models failed (${resp.status} ${resp.statusText})`);
6211
6211
  }
6212
6212
  const data = await resp.json();
6213
- const ids = (data.data ?? []).map((m) => m.id?.trim()).filter((id) => Boolean(id));
6213
+ const primaryIds = (data.data ?? []).map((m) => m.id?.trim()).filter((id) => Boolean(id));
6214
6214
  const apiModels = await fetchApiModels();
6215
6215
  const apiById = /* @__PURE__ */ new Map();
6216
+ const secondaryIds = [];
6216
6217
  for (const model of apiModels ?? []) {
6217
6218
  const id = asNonEmptyString(model.id);
6218
6219
  if (!id) continue;
6219
6220
  apiById.set(id, model);
6221
+ secondaryIds.push(id);
6220
6222
  }
6223
+ const ids = Array.from(/* @__PURE__ */ new Set([...primaryIds, ...secondaryIds]));
6221
6224
  const modelsRootDir = await resolveModelsRootDir();
6222
6225
  const localMetadataEntries = await Promise.all(
6223
6226
  ids.map(async (id) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metrillm",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Benchmark your local LLM models — speed, quality & hardware fitness verdict",
5
5
  "type": "module",
6
6
  "bin": {