You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstprompt=recipe<{title: string}>("prompt",({ title })=>{
40
73
title.setDefault("abstract geometric art");
41
-
const{ result }=generateData<Prompt[]>({
42
-
prompt: str`generate 10 image prompt variations for the current prompt: ${title}. Some should change just the style, some should change the content, and some should change both. The last should be a completely different prompt.`,
43
-
result: [],
44
-
schema: {
45
-
type: "array",
46
-
items: {
47
-
type: "object",
48
-
properties: {
49
-
prompt: {
50
-
type: "string",
51
-
},
52
-
},
53
-
},
54
-
},
55
-
mode: "json",
56
-
});
74
+
constvariations=grabPrompts(generateText(buildPrompt({ title })));
0 commit comments