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/$%7Bsuccess?q=openai&page=59&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 1610 results for "openai"(499ms)

ninja_turtle_namermain.tsx1 match

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

sedatePurpleReindeermain.tsx2 matches

@ajax•Updated 1 month 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 1 month 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 1 month 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 1 month 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 1 month 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 1 month 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,

generate_twitch_ideasmain.tsx2 matches

@ajax•Updated 1 month 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, generate a list of innovative Twitch integration ideas: " + body.userInput,

twitch_integration_ideas_generatormain.tsx2 matches

@ajax•Updated 1 month 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 ideas: " + body.userInput,

generate_llm_ideasmain.tsx2 matches

@ajax•Updated 1 month 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 an innovative thinker specializing in language model development.",
16 prompt: "Using the following inspiration, brainstorm new ideas for language models: " + body.userInput,

translateToEnglishWithOpenAI1 file match

@shlmt•Updated 2 days ago

testOpenAI1 file match

@stevekrouse•Updated 4 days 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": "*",