Skip to content

Commit 2cfa697

Browse files
authored
processWorkflow needs explicit model now (#1100)
1 parent ed1ef3a commit 2cfa697

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

seeder/cli.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ import {
2222
screenshot,
2323
} from "./jumble.ts";
2424

25-
const { name, tag, "no-cache": noCache } = parseArgs(Deno.args, {
26-
string: ["name", "tag"],
27-
boolean: ["no-cache"],
28-
});
25+
const {
26+
name,
27+
tag,
28+
"no-cache": noCache,
29+
model = "anthropic:claude-3-7-sonnet-20250219",
30+
} = parseArgs(
31+
Deno.args,
32+
{
33+
string: ["name", "tag", "model"],
34+
boolean: ["no-cache"],
35+
},
36+
);
2937

3038
const cache = !noCache;
3139

@@ -82,6 +90,7 @@ async function processCommand(
8290
console.log(`Adding: "${prompt}"`);
8391
const form = await processWorkflow(prompt, charmManager, {
8492
cache,
93+
model,
8594
prefill: {
8695
classification: {
8796
workflowType: "imagine",
@@ -108,6 +117,7 @@ async function processCommand(
108117
const form = await processWorkflow(prompt, charmManager, {
109118
existingCharm: charm,
110119
cache,
120+
model,
111121
prefill: {
112122
classification: {
113123
workflowType: "imagine",
@@ -123,6 +133,8 @@ async function processCommand(
123133
console.log(`Charm added: ${id["/"]}`);
124134
await verifyCharm(id["/"], prompt);
125135
return id["/"];
136+
} else {
137+
console.error(`Charm not added: ${prompt}`);
126138
}
127139
break;
128140
}

0 commit comments

Comments
 (0)