dthyresson avatar
dthyresson
generateOpenGraphTags
Script
// Helper function to escape HTML special characters
0
dthyresson avatar
dthyresson
bedtimeStoryColors
Script
An interactive, runnable TypeScript val by dthyresson
0
dthyresson avatar
dthyresson
bedtimeStoryAdjectives
Script
An interactive, runnable TypeScript val by dthyresson
0
dthyresson avatar
dthyresson
bedtimeStoryActivities
Script
An interactive, runnable TypeScript val by dthyresson
0
dthyresson avatar
dthyresson
viewOnValTownComponent
HTTP
View on Val Town Give url and, link to your val!
0
stevekrouse avatar
stevekrouse
openai
Script
OpenAI ChatGPT helper function This val uses your OpenAI token if you have one, and the @std/openai if not, so it provides limited OpenAI usage for free. import { chat } from "https://esm.town/v/stevekrouse/openai"; const { content } = await chat("Hello, GPT!"); console.log(content); import { chat } from "https://esm.town/v/stevekrouse/openai"; const { content } = await chat( [ { role: "system", content: "You are Alan Kay" }, { role: "user", content: "What is the real computer revolution?"} ], { max_tokens: 50, model: "gpt-4o" } ); console.log(content);
1
dthyresson avatar
dthyresson
bedtimeStoryAnimals
Script
An interactive, runnable TypeScript val by dthyresson
0
dthyresson avatar
dthyresson
bedtimeStoriesDb
Script
// query all bedtime stories
0
1
Next
dependify-bedtimestorymaker.web.val.run
Updated: November 18, 2024