2
3export let stableDiffusionCreate = async (key, prompt) => {
4 const url = "https://api.replicate.com/v1/predictions";
5 const headers = {
6 Authorization: `Token ${key}`,
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}
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);
1export function myApi(name) {
2 return { "ale": 1 };
3}
1export function myApi(name) {
2 return "hi " + name;
3}
3// GitHub repos
4export let githubRepos = fetchJSON(
5 "https://api.github.com/users/stealsocks/repos",
6);
4 const { LLM, MODEL } = await import("npm:llm.ts");
5 return new LLM({
6 apiKeys: {
7 huggingface: process.env.HF_API_TOKEN,
8 },
9 }).completion({
2
3export const buddhaQuoteOfTheDay = (async () => {
4 const resp = await fetch("https://buddha-api.com/api/today");
5 const j = await resp.json();
6 const { text, byName } = j;