We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9feb262 commit 8eb05fbCopy full SHA for 8eb05fb
3 files changed
packages/runtime-sample/src/poem-function.js
@@ -4,3 +4,5 @@ export async function writePoem() {
4
const res = await prompt`write a poem`;
5
return res.text;
6
}
7
+
8
+await writePoem()
packages/runtime-sample/src/poem-js.js
@@ -1,5 +1,4 @@
1
import { config } from "@genaiscript/runtime";
2
-
3
await config();
const d = YAML`foo: bar`;
packages/runtime-sample/src/poem-ts.ts
@@ -1,5 +1,5 @@
-import "@genaiscript/runtime";
+import { config } from "@genaiscript/runtime";
+await config();
-const d = YAML`foo: bar`;
-const res = await prompt`write a poem`;
+const res = await prompt`write a poem`.options({ model: "github:openai/gpt-4o" });
console.log(res.text);
0 commit comments