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=4&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 3228 results for "openai"(2051ms)

OpenAI2 file matches

@dmartinez•Updated 5 months ago

OpenAI2 file matches

@Lucianoc•Updated 5 months ago

openaiStreamingDemo2 file matches

@stevekrouse•Updated 5 months ago

openaistreaminghtml2 file matches

@stevekrouse•Updated 5 months ago

OpenAIProxy1 file match

@harveyfullstack•Updated 6 months ago

OpenAI2 file matches

@mjoshimanhar•Updated 6 months ago

OpenAI2 file matches

@wangqiao1234•Updated 6 months ago

openAIStreamingExample1 file match

@maxm•Updated 7 months ago

translateToEnglishWithOpenAI1 file match

@Hadarhubara•Updated 7 months ago

OpenAI2 file matches

@Yogareddy107•Updated 7 months ago

vtEditorFilesAGENTS.md4 matches

@jrmann100•Updated 1 hour 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" },

chatterchatterApp.js3 matches

@yawnxyz•Updated 13 hours ago
113 apiKeyInput: '',
114 // Model selection
115 selectedModel: 'openai/gpt-oss-120b',
116 // Browser search tool toggle
117 useBrowserSearch: true,
1432 model: this.selectedModel,
1433 reasoning_effort: this.reasoningEffort,
1434 tools: (() => { const list = []; const isOss = !!(this.selectedModel && this.selectedModel.startsWith('openai/gpt-oss')); if (isOss) { if (this.useBrowserSearch) list.push({ type: 'browser_search' }); if (this.useCodeInterpreter) list.push({ type: 'code_interpreter' }); } return list; })(),
1435 temperature: this.temperature,
1436 ...(this.maxTokens ? { max_tokens: this.maxTokens } : {}),
1577 model: this.selectedModel,
1578 reasoning_effort: this.reasoningEffort,
1579 tools: (() => { const list = []; const isOss = !!(this.selectedModel && this.selectedModel.startsWith('openai/gpt-oss')); if (isOss) { if (this.useBrowserSearch) list.push({ type: 'browser_search' }); if (this.useCodeInterpreter) list.push({ type: 'code_interpreter' }); } return list; })(),
1580 temperature: this.temperature,
1581 ...(this.maxTokens ? { max_tokens: this.maxTokens } : {}),
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