1Migrated from folder: External_APIs/openai/function_calling/gpt4FunctionCallingExample
2
3// fetches a random joke
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
1import { html } from "https://esm.town/v/lbb00/html";
2export async function LoginRegistryExample(request: Request): Promise<Response> {
3 return new Response(
4 html`
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
1export async function washer_3d(request: Request): Promise<Response> {
2 const u = new URL(request.url);
3 const params = Object.fromEntries(u.searchParams.entries());
21};
22
23function Val({ author, name }) {
24 return <iframe width="600" height="300" frameBorder="0" src={`https://www.val.town/embed/${author}/${name}`} />;
25}
26
27export async function markdocReactExample(req: Request) {
28 // extract the current val readme
29 const { author, name } = extractValInfo(import.meta.url);
4const TERM = "202402";
5
6export async function georgiaTechRegistration(request: Request): Promise<Response> {
7 const course = new URL(request.url).searchParams.get("courseId")?.toString();
8 if (course === undefined) return Response.json({ error: "missing courseId" });
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
2
3// Fetches a random joke.
4function fetchRandomJoke() {
5 const SAMPLE_JOKE = {
6 "setup": "What do you call a group of disorganized cats?",
A helper function to build a file's email
Simple functional CSS library for Val Town
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": "*",
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.