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//%22Wolf?q=openai&page=8&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 3230 results for "openai"(2096ms)

github-action-caseddeployment-webhook.ts3 matches

@tnm•Updated 5 days ago
1import { OpenAI } from "https://esm.town/v/std/openai";
2import { email } from "https://esm.town/v/std/email";
3
150 deploymentRequest: string;
151}): Promise<string> {
152 const openai = new OpenAI();
153
154 const prompt =
164The poem should be 12-16 lines, use elevated but accessible language, and blend DevOps terminology with natural imagery. Think of code as seeds, deployments as harvests, servers as fertile soil, and developers as gardeners tending the digital earth.`;
165
166 const completion = await openai.chat.completions.create({
167 messages: [
168 { role: "user", content: prompt },

croneAGENTS.md4 matches

@jrmann100•Updated 5 days ago
94Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to create a fresh table.
95
96### OpenAI
97
98```ts
99import { OpenAI } from "https://esm.town/v/std/openai";
100const openai = new OpenAI();
101const completion = await openai.chat.completions.create({
102 messages: [
103 { role: "user", content: "Say hello in a creative way" },

YapTrapadmin.ts8 matches

@lantholin•Updated 5 days ago
452 }
453
454 // Test OpenAI directly
455 const { OpenAI } = await import("https://esm.town/v/std/openai");
456 const openai = new OpenAI();
457
458 const completion = await openai.chat.completions.create({
459 messages: [
460 {
476 input: message,
477 response: response,
478 provider: 'openai',
479 model: 'gpt-4o-mini',
480 tokensUsed: completion.usage?.total_tokens || 0
730
731 // Use AI engine directly
732 const { OpenAI } = await import("https://esm.town/v/std/openai");
733 const openai = new OpenAI();
734
735 const completion = await openai.chat.completions.create({
736 messages: [
737 { role: "system", content: `You are ${persona.name}, a ${persona.role} in a software team. ${persona.communicationStyle}` },

YapTrapdeploy.ts1 match

@lantholin•Updated 5 days ago
144 // Check required environment variables
145 const requiredVars = [
146 'OPENAI_API_KEY',
147 'SLACK_BOT_TOKEN',
148 'TELNYX_API_KEY',

YapTrapschema.ts1 match

@lantholin•Updated 5 days ago
326 key: 'ai.default_provider',
327 value: JSON.stringify({
328 name: 'openai',
329 model: 'gpt-4o-mini',
330 maxTokens: 150,

ozbargainAGENTS.md4 matches

@patmood•Updated 5 days ago
94Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to create a fresh table.
95
96### OpenAI
97
98```ts
99import { OpenAI } from "https://esm.town/v/std/openai";
100const openai = new OpenAI();
101const completion = await openai.chat.completions.create({
102 messages: [
103 { role: "user", content: "Say hello in a creative way" },

food-trackermain.http.ts7 matches

@tanishqkancharla•Updated 6 days ago
1import { OpenAI } from "https://deno.land/x/openai@v4.57.0/mod.ts";
2import { logFood } from "./notion.ts";
3import { searchFood, getNutrition, type SearchResult, type NutritionResult } from "./usda.ts";
13}
14
15const openaiApiKey = Deno.env.get("OPENAI_API_KEY") || env.OPENAI_API_KEY;
16const browserUseApiKey = Deno.env.get('BROWSER_USE_API_KEY') || env.BROWSER_USE_API_KEY;
17
18console.log("OpenAI API key present:", !!openaiApiKey);
19console.log("Browser Use API key present:", !!browserUseApiKey);
20
21const openai = new OpenAI({
22 apiKey: openaiApiKey,
23});
24const browserUse = new BrowserUseClient({
206 ];
207
208 let completion = await openai.chat.completions.create({
209 model: "gpt-4o",
210 messages,
281
282 // Get next response
283 completion = await openai.chat.completions.create({
284 model: "gpt-4o",
285 messages,

hello-realtimeagent.ts2 matches

@jubertioai•Updated 6 days ago
6const NR_TYPE = "near_field";
7const INSTRUCTIONS = `
8 Greet the user in English, and thank them for trying the new OpenAI Realtime API.
9 Give them a brief summary based on the list below, and then ask if they have any questions.
10 Answer questions using the information below. For questions outside this scope,
23 - higher audio quality
24 - improved handling of alphanumerics (eg, properly understanding credit card and phone numbers)
25 - support for the OpenAI Prompts API
26 - support for MCP-based tools
27 - auto-truncation to reduce context size

PreactHTMXAGENTS.md4 matches

@dumbanimal•Updated 6 days ago
94Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to create a fresh table.
95
96### OpenAI
97
98```ts
99import { OpenAI } from "https://esm.town/v/std/openai";
100const openai = new OpenAI();
101const completion = await openai.chat.completions.create({
102 messages: [
103 { role: "user", content: "Say hello in a creative way" },

food-trackerAGENTS.md4 matches

@tanishqkancharla•Updated 6 days ago
94Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to create a fresh table.
95
96### OpenAI
97
98```ts
99import { OpenAI } from "https://esm.town/v/std/openai";
100const openai = new OpenAI();
101const completion = await openai.chat.completions.create({
102 messages: [
103 { role: "user", content: "Say hello in a creative way" },

openai-usage1 file match

@nbbaier•Updated 1 day ago

hello-realtime5 file matches

@jubertioai•Updated 4 days ago
Sample app for the OpenAI Realtime API
reconsumeralization
import { OpenAI } from "https://esm.town/v/std/openai"; import { sqlite } from "https://esm.town/v/stevekrouse/sqlite"; /** * Practical Implementation of Collective Content Intelligence * Bridging advanced AI with collaborative content creation */ exp
kwhinnery_openai