1
2
3
4
5
6
7
8
9
10
11
import process from "node:process";
import { gpt3 } from "https://esm.town/v/nate/gpt3";
export let kindness = async () => {
return await gpt3({
openAiKey: process.env.OPENAI_API_KEY,
prompt:
"Speaking as universal consciousness, say something short, true, uplifting, loving, and kind.",
model: "text-curie-001",
});
};
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.