dsh-model-health 0.2.6 → 0.2.7
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/dist/client.js +2 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -613,12 +613,14 @@
|
|
|
613
613
|
const models = data.models || [];
|
|
614
614
|
const activeLang = locale && typeof locale.getLocale === "function" ? locale.getLocale().active : "zh";
|
|
615
615
|
const updatedAt = new Date(data.updatedAt || Date.now()).toLocaleString(activeLang === "en" ? "en-US" : "zh-CN");
|
|
616
|
+
const validKeys = new Set(models.map((m) => m.key));
|
|
616
617
|
const stats = {
|
|
617
618
|
ok: 0,
|
|
618
619
|
fail: 0,
|
|
619
620
|
skip: 0
|
|
620
621
|
};
|
|
621
622
|
for (const k in run.results) {
|
|
623
|
+
if (!validKeys.has(k)) continue;
|
|
622
624
|
const s = run.results[k].status;
|
|
623
625
|
if (s === "ok") stats.ok++;
|
|
624
626
|
else if (s === "fail") stats.fail++;
|
package/package.json
CHANGED