metrillm-mcp 0.2.2 → 0.2.3
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 +16 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9574,6 +9574,20 @@ async function promptThinkingMode() {
|
|
|
9574
9574
|
});
|
|
9575
9575
|
}
|
|
9576
9576
|
|
|
9577
|
+
// ../src/core/runtime-unavailable.ts
|
|
9578
|
+
function getRuntimeUnavailableHelp(runtimeName, setupHints) {
|
|
9579
|
+
const runtimeDisplayName = getRuntimeDisplayName(runtimeName);
|
|
9580
|
+
const lines = [
|
|
9581
|
+
`MetriLLM is currently set to use ${runtimeDisplayName}.`,
|
|
9582
|
+
`Either start ${runtimeDisplayName}, or switch to another backend in Settings.`
|
|
9583
|
+
];
|
|
9584
|
+
for (const hint of setupHints) {
|
|
9585
|
+
lines.push(` \u2022 ${hint}`);
|
|
9586
|
+
}
|
|
9587
|
+
lines.push(" \u2022 To change backend: Main Menu -> Settings -> Runtime backend");
|
|
9588
|
+
return lines;
|
|
9589
|
+
}
|
|
9590
|
+
|
|
9577
9591
|
// ../src/commands/bench.ts
|
|
9578
9592
|
var BENCHMARK_SPEC_VERSION = "0.2.1";
|
|
9579
9593
|
var PROMPT_PACK_VERSION = "0.1.0";
|
|
@@ -9640,9 +9654,8 @@ async function benchCommand(options) {
|
|
|
9640
9654
|
} catch (err) {
|
|
9641
9655
|
if (!silent) {
|
|
9642
9656
|
spinnerModels.fail(`Cannot connect to ${runtimeDisplayName}`);
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
errorMsg(` \u2022 ${hint}`);
|
|
9657
|
+
for (const line of getRuntimeUnavailableHelp(runtimeName, runtimeSetupHints)) {
|
|
9658
|
+
errorMsg(line);
|
|
9646
9659
|
}
|
|
9647
9660
|
if (err instanceof Error) errorMsg(err.message);
|
|
9648
9661
|
}
|