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=63&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 1637 results for "openai"(766ms)

truthfulCyanSwordfishmain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
12 }
13 const { text: newGameIdea } = await generateText({
14 model: openai("gpt-4o-mini"),
15 system: "You are a creative game designer specializing in Digimon-themed games.",
16 prompt: "Based on the following inspiration related to Digimon, generate a unique game concept: " + body.inspiration,

astuteBlushVicunamain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
12 }
13 const { text: newGameIdea } = await generateText({
14 model: openai("gpt-4o-mini"),
15 system: "You are a creative game designer specializing in Pokémon-inspired games.",
16 prompt: `Based on the following inspiration related to Pokémon, generate a unique game concept including mechanics, storylines, and character ideas: ${body.inspiration}`,

intuitivePinkHorsemain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
20
21 const { text: gameIdea } = await generateText({
22 model: openai("gpt-4o-mini"),
23 system: "You are a creative game designer.",
24 prompt: prompt,

systematicCyanFlymain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
23
24 const { text: gameIdeas } = await generateText({
25 model: openai("gpt-4o-mini"),
26 system: "You are a creative game designer.",
27 prompt: prompt.trim(),

celestialAquaCrocodilemain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
15
16 const { text: gameConcept } = await generateText({
17 model: openai("gpt-4o-mini"),
18 system: "You are a creative game designer.",
19 prompt: `Generate a unique game concept based on the following details:

generate_game_ideasmain.tsx2 matches

@ajax•Updated 2 months ago
1import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
23
24 const { text: gameIdeas } = await generateText({
25 model: openai("gpt-4o-mini"),
26 system: "You are a creative game designer.",
27 prompt: prompt.trim(),

sociableWhiteReindeermain.tsx2 matches

@ajax•Updated 2 months ago
1```typescript
2import { openai } from "npm:@ai-sdk/openai";
3import { generateText } from "npm:ai";
4
13 }
14 const { text: gameConcepts } = await generateText({
15 model: openai("gpt-4o-mini"),
16 system: "You are a creative game designer.",
17 prompt: `Generate unique game concepts that blend elements from Pokémon and Digimon based on the theme: ${body.theme}. Include characters, mechanics, and storyline elements.`,

generate_pokemon_digimon_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: gameIdeas } = await generateText({
14 model: openai("gpt-4o-mini"),
15 system: "You are a creative game designer.",
16 prompt:

generate_pokemon_wizard_ideasmain.tsx2 matches

@ajax•Updated 2 months ago
1```typescript
2import { openai } from "npm:@ai-sdk/openai";
3import { generateText } from "npm:ai";
4
13 }
14 const { text: ideas } = await generateText({
15 model: openai("gpt-4o-mini"),
16 system: "You are a creative game designer specializing in combining Pokémon and wizard themes.",
17 prompt: `Generate a list of unique game concepts that combine Pokémon and wizard themes based on the following theme: ${body.theme}`,

generate_pokemon_ninja_ideasmain.tsx2 matches

@ajax•Updated 2 months ago
1```typescript
2import { openai } from "npm:@ai-sdk/openai";
3import { generateText } from "npm:ai";
4
13 }
14 const { text: gameIdeas } = await generateText({
15 model: openai("gpt-4o-mini"),
16 system: "You are a creative game designer specializing in combining Pokémon and ninja themes.",
17 prompt: `Generate creative game ideas that combine Pokémon and ninja themes. Include unique concepts for gameplay, characters, and storylines based on the following theme: ${body.theme}`,

translateToEnglishWithOpenAI1 file match

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