Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/image-url.jpg%20%22Image%20title%22?q=openai&page=61&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=openai

Returns an array of strings in format "username" or "username/projectName"

Found 1633 results for "openai"(830ms)

chuck_norris_responsemain.tsx1 match

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3

ai_parody_yesterdaymain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
13 const theme = body.theme;
14 const { text: parodyLyrics } = await generateText({
15 model: openai("gpt-4o-mini"),
16 system: "You are a creative songwriter.",
17 prompt: `Create a parody of the song 'Yesterday' by The Beatles. The parody should maintain the original melody and structure but incorporate the following theme: ${theme}.`,

name_new_town_australiamain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
21
22 const { text: townName } = await generateText({
23 model: openai("gpt-4o-mini"),
24 system: "You are an AI that generates unique town names in Australia.",
25 prompt: `Generate a unique town name based on the theme: ${selectedTheme}. Consider Australian geography, culture, and history.`

ninja_turtle_namermain.tsx1 match

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3

sedatePurpleReindeermain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
12 }
13 const { text: creativeIdeas } = await generateText({
14 model: openai("gpt-4o-mini"),
15 system: "You are an expert in generating creative Twitch integration ideas.",
16 prompt: "Based on the following inspiration, generate a list of innovative Twitch integration ideas: " + body.userInput,

astuteScarletSnipemain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
12 }
13 const { text: ideasList } = await generateText({
14 model: openai("gpt-4o-mini"),
15 system: "You are a creative assistant specialized in generating innovative Twitch integration ideas.",
16 prompt: "Based on the following inspiration, generate a list of creative Twitch integration ideas: " + body.userInput,

rousingSalmonGamefowlmain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
12 }
13 const { text: ideas } = await generateText({
14 model: openai("gpt-4o-mini"),
15 system: "You are a creative Twitch integration idea generator.",
16 prompt: "Based on the following inspiration, brainstorm creative Twitch integration concepts: " + body.userInput,

valuableAquaLemmingmain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
12 }
13 const { text: ideasList } = await generateText({
14 model: openai("gpt-4o-mini"),
15 system: "You are a creative Twitch integration idea generator.",
16 prompt: "Based on the following inspiration, generate a list of innovative Twitch integration ideas: " + body.inspiration,

modestPinkConstrictormain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
12 }
13 const { text: ideas } = await generateText({
14 model: openai("gpt-4o-mini"),
15 system: "You are a creative Twitch integration idea generator.",
16 prompt: "Based on the following inspiration, brainstorm creative Twitch integration concepts: " + body.userInput,

generate_twitch_integration_ideasmain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
12 }
13 const { text: ideas } = await generateText({
14 model: openai("gpt-4o-mini"),
15 system: "You are a creative thinker specializing in Twitch integrations.",
16 prompt: "Generate a list of innovative Twitch integration ideas based on the following inspiration: " + body.inspiration,

translateToEnglishWithOpenAI1 file match

@shlmt•Updated 6 days ago

testOpenAI1 file match

@stevekrouse•Updated 1 week ago
lost1991
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": "*",