@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.mjs
CHANGED
|
@@ -6405,12 +6405,15 @@ var EvalRunner = class {
|
|
|
6405
6405
|
}
|
|
6406
6406
|
resolvedJudgeModelKey = judgeModelKey;
|
|
6407
6407
|
} else {
|
|
6408
|
-
const
|
|
6409
|
-
|
|
6408
|
+
const models = modelLatticeManager2.getAllLattices();
|
|
6409
|
+
const defaultModel = models.find((m) => m.key === "default");
|
|
6410
|
+
resolvedJudgeModelKey = defaultModel?.key ?? models[0]?.key ?? "";
|
|
6411
|
+
if (!resolvedJudgeModelKey) {
|
|
6410
6412
|
throw new Error("No model registered \u2014 cannot run eval without a judge model");
|
|
6411
6413
|
}
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
+
if (!defaultModel) {
|
|
6415
|
+
console.warn(`[eval-runner] Project "${project.name}" has no judge modelKey and no "default" model \u2014 falling back to first registered model "${resolvedJudgeModelKey}"`);
|
|
6416
|
+
}
|
|
6414
6417
|
}
|
|
6415
6418
|
const runId = uuidv43();
|
|
6416
6419
|
const concurrency = Math.max(1, Math.floor(project.concurrency) || 3);
|