@axiom-lattice/gateway 3.0.8 → 3.0.9
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/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -8413,12 +8413,15 @@ var EvalRunner = class {
|
|
|
8413
8413
|
}
|
|
8414
8414
|
resolvedJudgeModelKey = judgeModelKey;
|
|
8415
8415
|
} else {
|
|
8416
|
-
const
|
|
8417
|
-
|
|
8416
|
+
const models = import_core31.modelLatticeManager.getAllLattices();
|
|
8417
|
+
const defaultModel = models.find((m) => m.key === "default");
|
|
8418
|
+
resolvedJudgeModelKey = defaultModel?.key ?? models[0]?.key ?? "";
|
|
8419
|
+
if (!resolvedJudgeModelKey) {
|
|
8418
8420
|
throw new Error("No model registered \u2014 cannot run eval without a judge model");
|
|
8419
8421
|
}
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
+
if (!defaultModel) {
|
|
8423
|
+
console.warn(`[eval-runner] Project "${project.name}" has no judge modelKey and no "default" model \u2014 falling back to first registered model "${resolvedJudgeModelKey}"`);
|
|
8424
|
+
}
|
|
8422
8425
|
}
|
|
8423
8426
|
const runId = (0, import_uuid4.v4)();
|
|
8424
8427
|
const concurrency = Math.max(1, Math.floor(project.concurrency) || 3);
|