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=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 1610 results for "openai"(472ms)

generate_pokemon_digimon_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: 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 1 month 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 1 month 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}`,

pureAquamarineAardwolfmain.tsx2 matches

@ajax•Updated 1 month ago
1```typescript
2import { openai } from "npm:@ai-sdk/openai";
3import { generateText } from "npm:ai";
4
15 const themes = body.themes.join(", ");
16 const { text: gameConcepts } = await generateText({
17 model: openai("gpt-4o-mini"),
18 system: "You are a creative game designer.",
19 prompt: `Generate unique game concepts that combine the following themes with Pokémon and ninja elements: ${themes}. Provide a list of creative and engaging game ideas.`,

pokemon_ninja_idea_generatormain.tsx2 matches

@ajax•Updated 1 month ago
1```typescript
2import { openai } from "npm:@ai-sdk/openai";
3import { generateText } from "npm:ai";
4
15 const themes = body.themes.join(", ");
16 const { text: gameConcepts } = await generateText({
17 model: openai("gpt-4o-mini"),
18 system: "You are a creative game designer.",
19 prompt: `Generate unique game concepts that combine the following themes with Pokémon and ninja elements: ${themes}. Provide a list of creative and engaging game ideas.`,

ableLavenderSkunkmain.tsx2 matches

@ajax•Updated 1 month ago
1```typescript
2import { openai } from "npm:@ai-sdk/openai";
3import { generateText } from "npm:ai";
4
16
17 const { text: gameIdeas } = await generateText({
18 model: openai("gpt-4o-mini"),
19 system: "You are a creative game designer specializing in Pokémon games.",
20 prompt: `Generate unique Pokémon game ideas based on the following theme and mechanics:

generate_pokemon_game_ideasmain.tsx2 matches

@ajax•Updated 1 month ago
1```typescript
2import { openai } from "npm:@ai-sdk/openai";
3import { generateText } from "npm:ai";
4
16
17 const { text: gameIdeas } = await generateText({
18 model: openai("gpt-4o-mini"),
19 system: "You are a creative game designer specializing in the Pokémon franchise.",
20 prompt: `Generate a list of creative and unique Pokémon game ideas based on the following theme and mechanics:

typeanythingmapREADME.md1 match

@danny•Updated 1 month ago
13- **React** (because why not)
14- **Leaflet** (so you get a map)
15- **OpenAI** (to generate the GeoJSON and occasionally gaslight you)
16
17## Disclaimer

optimizadordenegociosmain.tsx6 matches

@richardrachir•Updated 1 month ago
389
390export default async function server(request: Request): Promise<Response> {
391 const { OpenAI } = await import("https://esm.town/v/std/openai");
392 const openai = new OpenAI();
393 const url = new URL(request.url);
394
399 switch(url.pathname) {
400 case '/api/generate-buyer-persona':
401 const buyerPersonaResult = await openai.chat.completions.create({
402 messages: [{
403 role: "user",
444
445 case '/api/identify-problems':
446 const problemsResult = await openai.chat.completions.create({
447 messages: [{
448 role: "user",
473
474 case '/api/generate-solutions':
475 const solutionsResult = await openai.chat.completions.create({
476 messages: [{
477 role: "user",
504
505 case '/api/create-offer':
506 const offerResult = await openai.chat.completions.create({
507 messages: [{
508 role: "user",

researchAgentemailHandler2 matches

@kamalnrf•Updated 1 month ago
2import process from "node:process";
3import { marked } from "npm:marked";
4import { OpenAI } from "npm:openai";
5
6function pm(...lines: string[]): string {
16 );
17
18 const client = new OpenAI({ apiKey: process.env.PERPLEXITY_API_KEY, baseURL: "https://api.perplexity.ai" });
19 const response = await client.chat.completions.create({
20 model: "sonar",

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": "*",