1import { fetch } from "https://esm.town/v/std/fetch";
2
3export function deleteVal({ token, id }: {
4 token: string;
5 id: string;
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { runVal } from "https://esm.town/v/std/runVal";
2
3export async function gpt3(msg) {
4 return await runVal("patrickjm.gpt3", {
5 prompt: JSON.stringify(msg),
1export function test() {
2 return "AAAA";
3}
3import { getEmails } from "https://esm.town/v/eric/getEmails";
4
5untitled0045282 = export async function asyncSubscribe() {
6 const s = await getEmails()
7 console.log(s)
1export function github_avatar(username) {
2 return `https://github.com/${username}.png`;
3}
4
5// # Email alerts when air is unhealthy near you
6export async function aqiInProgress() {
7 async function mapLocationsToQuality(locations) {
8 const promises = Object.entries(locations).map(async ([name, id]) => {
9 const warningThresold = 75;
1export function myApi(name) {
2 return "hi " + name;
3}
28
29 console.log(
30 `average e2e user function time: ${(
31 userFuncTimes.reduce((a, b) => a + b, 0) / count
32 ).toFixed(0)}ms (fastest was ${userFuncTimes
A helper function to build a file's email
Simple functional CSS library for Val Town
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",