6 version: number;
7}): Promise<Response> {
8 return fetch(`https://api.val.town/v1/vals/${id}/versions/${version}`, {
9 headers: {
10 Authorization: `Bearer ${token}`,
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
3export const openaiCompletion = async (prompt) => {
4 const { OpenAI } = await import("https://deno.land/x/openai/mod.ts");
5 const openAI = new OpenAI(process.env.OPENAI_API_KEY);
6 const completion = openAI.createCompletion({
7 model: "text-davinci-003",
1export function myApi(name) {
2 return "hi " + name;
3}
3// GitHub gists
4export let githubGists = fetchJSON(
5 "https://api.github.com/users/stevekrouse/gists"
6);
1import { musicianDb } from "https://esm.town/v/maclong/musicianDb";
2
3export async function musicianApi(req: express.Request, res: express.Response) {
4 const { data, type } = req.body;
5 const { tracks, events, emails } = musicianDb;
6) => {
7 const url =
8 `https://api.themoviedb.org/3/trending/movie/${timeWindow}?language=${language}`;
9 const options = {
10 method: "GET",