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//%22$%7Bconfig.siteUrl%7D/%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 3227 results for "openai"(2998ms)

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

Llama-3-3-70b-chat-01main.tsx1 match

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

Qwen3-32b-Chatmain.tsx1 match

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

Compound-Chat-01main.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 22 hours 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