Public
Cron
Runs every 1 hrs
1
2
3
4
5
6
7
8
9
10
import process from "node:process";
import { gpt3 } from "https://esm.town/v/patrickjm/gpt3?v=4";
export let api = async ({ prompt = "讲一个笑话" }) => {
return gpt3({
openAiKey: process.env.openai_key,
prompt,
})
.then((result) => result.split("\n"));
};
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023