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//%22mailto:kurt@sachersolutions.ca/%22?q=openai&page=3&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"(1801ms)

hello-realtimesip.ts3 matches

@anotherjesse•Updated 2 days ago
9sip.post("/", async (c) => {
10 // Verify the webhook.
11 const OPENAI_SIGNING_SECRET = Deno.env.get("OPENAI_SIGNING_SECRET");
12 if (!OPENAI_SIGNING_SECRET) {
13 console.error("🔴 webhook secret not configured");
14 return c.text("Internal error", 500);
15 }
16 const webhook = new Webhook(OPENAI_SIGNING_SECRET);
17 const bodyStr = await c.req.text();
18 let callId: string | undefined;

hello-realtimeREADME.md5 matches

@anotherjesse•Updated 2 days ago
1# hello-realtime
2
3**Hello Realtime** is a OpenAI Realtime app that supports both WebRTC and SIP
4(telephone) users. You can access the app via WebRTC at
5[hello-realtime.val.run](https://hello-realtime.val.run), or via SIP by calling
9server-side websocket interface.
10
11If you remix the app, you'll just need to pop in your own `OPENAI_API_KEY` (from
12[platform.openai.com](https://platform.openai.com)), and if you want SIP, the
13`OPENAI_SIGNING_SECRET`.
14
15## Architecture
18 - Browser connects to frontend
19 - creates WebRTC offer
20 - `/rtc` endpoint handles SDP negotiation with OpenAI
21 - observer established to monitor session
222. **SIP Flow**:

hello-realtimeindex.html1 match

@anotherjesse•Updated 2 days ago
4 <meta charset="utf-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
6 <title>OpenAI Realtime API Voice Agent</title>
7 <style>
8 :root {

Townie-Al2system_prompt.txt4 matches

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

Townie-Al2.cursorrules4 matches

@prubeandoAl•Updated 2 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" },

Grok-Code-Fastmain.tsx1 match

@aibotcommander•Updated 2 days ago
15 provider: "groq",
16 model: "qwen3-coder",
17 endpoint: "https://api.groq.com/openai/v1/chat/completions",
18 headers: {
19 "Authorization": `Bearer ${process.env.GROQ_API_KEY}`,

thoughtprmain.ts3 matches

@realtime•Updated 2 days ago
1import { blob } from "https://esm.town/v/std/blob?v=11";
2import { OpenAI } from "https://esm.town/v/std/openai?v=4";
3
4// --- TYPE DEFINITIONS ---
271 }
272
273 const openai = new OpenAI();
274 const completion = await openai.chat.completions.create({
275 model: "gpt-4o",
276 messages: [

Mistral-3-2-Chat-02main.tsx1 match

@aibotcommander•Updated 2 days ago
57 provider: "groq",
58 model: "compound",
59 endpoint: "https://api.groq.com/openai/v1/chat/completions",
60 headers: {
61 "Authorization": `Bearer ${process.env.GROQ_API_KEY}`,

Qwen3-32b-Coder-405Bmain.tsx1 match

@aibotcommander•Updated 2 days ago
15 provider: "groq",
16 model: "qwen3-coder",
17 endpoint: "https://api.groq.com/openai/v1/chat/completions",
18 headers: {
19 "Authorization": `Bearer ${process.env.GROQ_API_KEY}`,

Llama-4-Maverick-02main.tsx1 match

@aibotcommander•Updated 2 days ago
31 try {
32 response = await fetch(
33 "https://api.groq.com/openai/v1/chat/completions",
34 {
35 method: "POST",

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