1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export function tidbytDeviceInstallations({ deviceId, apiKey }: {
4 deviceId: string;
5 apiKey: string;
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export async function references({ token, since, until, offset, limit }: {
5 token: string;
6 since?: Date;
1import { name as name2 } from "https://esm.town/v/wonday/name";
2
3export function myApi(name) {
4 return `hi ${name}! my name is ${name2}`;
5}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 console.email("hello " + name);
3 return "hello " + name;
1export function tatatutu() {
2 console.email("this is the body");
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export async function sha256OfText(text: string) {
2 // https://stackoverflow.com/a/48161723/712889
3 const textBuffer = new TextEncoder().encode(text);
1import { chat } from "https://esm.town/v/webup/chat";
2
3export const chatSampleFunctionTagging = (async () => {
4 const input =
5 "Estoy increiblemente contento de haberte conocido! Creo que seremos muy buenos amigos!";
9 ${input}
10 `;
11 const functions = [
12 {
13 name: "information_extraction",
24 },
25 ];
26 const response = await chat(prompt, { functions });
27 return JSON.parse(response?.arguments);
28})();
1export function myApi(name) {
2 return "hi " + name;
3}
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": "*",