1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import VALLErun from "https://esm.town/v/janpaul123/VALLErun?v=9";
import { extractValInfo } from "https://esm.town/v/pomdtr/extractValInfo?v=29";
import { OpenAI } from "https://esm.town/v/std/openai";
const openai = new OpenAI();
const completion = await openai.chat.completions.create({
messages: [
{ role: "user", content: "Say hello in a creative way" },
],
model: "gpt-4o-mini",
max_tokens: 30,
});
console.log(completion.choices[0].message.content);
// Set these to your own
export default VALLErun({
username: extractValInfo(import.meta.url).author,
// Make a folder, navigate to it, and get this from the URL.
tempValsParentFolderId: "4bb7b010-4443-11ef-8642-de64eea55b61",
});