1export let apiTest = (input) => {
2 return input + ", hi";
3};
1import { chatGPT } from "https://esm.town/v/maxdrake/chatGPT";
2
3export let chatGPTExample = async (API_KEY) => {
4 let repsonse_obj = await chatGPT(
5 "hello assistant",
6 [], // this can be an empty list, or if you're using this to continue a conversation, you can pass in someting of the form: https://platform.openai.com/docs/guides/chat/introduction
7 API_KEY
8 );
9 let response_text = repsonse_obj.message;
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "Hello " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { untitled_ivoryPuma } from "https://esm.town/v/haxzie/untitled_ivoryPuma";
2
3export function myAPI(message) {
4 return "hello" + untitled_ivoryPuma();
5}
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);
3// Github followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/roskideluge/followers",
6);
1//https://api.val.town/v1/run/vawogbemi.myApi?args=["vawogbemi","12"]
2export function myApi(name, age) {
3 return { "hi ": name, "im": age };
4}