offgrid-ai 0.6.1 → 0.6.2
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/package.json +1 -1
- package/src/benchmark.mjs +6 -10
package/package.json
CHANGED
package/src/benchmark.mjs
CHANGED
|
@@ -166,6 +166,8 @@ async function prepareBenchmarkRun({ repoPath, benchmark, kind, modelId, modelSo
|
|
|
166
166
|
: { metadata: "metadata.json", prompt: "prompt.md", html: "index.html", preview: "preview.png", video: "preview.webm", rawResponse: "response.raw.txt" },
|
|
167
167
|
runner: {
|
|
168
168
|
mode: modelSource === "cloud" ? "manual" : "external",
|
|
169
|
+
intendedRunner: profile ? "Pi" : undefined,
|
|
170
|
+
...(profile ? { tool: "pi" } : {}),
|
|
169
171
|
...(modelSource ? { modelSource } : {}),
|
|
170
172
|
...(backendLabel ? { backendLabel } : {}),
|
|
171
173
|
...(profile?.baseUrl ? { baseUrl: profile.baseUrl } : {}),
|
|
@@ -190,16 +192,10 @@ async function prepareBenchmarkRun({ repoPath, benchmark, kind, modelId, modelSo
|
|
|
190
192
|
|
|
191
193
|
console.log("");
|
|
192
194
|
console.log(pc.bold("Next steps"));
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
console.log(` 4. View results: ${pc.cyan(`cd ${repoPath} && npm run dev`)}`);
|
|
198
|
-
} else {
|
|
199
|
-
console.log(` 1. ${pc.cyan(`cd ${runDirectory}`)}`);
|
|
200
|
-
console.log(` 2. Copy the prompt from ${pc.cyan("prompt.md")} into your tool of choice`);
|
|
201
|
-
console.log(` 3. View results: ${pc.cyan(`cd ${repoPath} && npm run dev`)}`);
|
|
202
|
-
}
|
|
195
|
+
console.log(` 1. ${pc.cyan(`offgrid-ai run ${profile ? profile.id : "<profile>"}`)}`);
|
|
196
|
+
console.log(` 2. ${pc.cyan(`cd ${repoPath} && npm run dev`)}`);
|
|
197
|
+
console.log(` 3. In the gallery, find your run and copy the prompt from the run details`);
|
|
198
|
+
console.log(" 4. In Pi, paste the prompt");
|
|
203
199
|
|
|
204
200
|
return runDirectory;
|
|
205
201
|
}
|