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=5&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"(2076ms)

OpenAIChatCompletion2 file matches

@rozek•Updated 7 months ago

translateToEnglishWithOpenAI1 file match

@ynonp•Updated 7 months ago

openaiproxy2 file matches

@charmaine•Updated 8 months ago

openAIStreamingExample1 file match

@peterqliu•Updated 8 months ago

OpenAI2 file matches

@ianmenethil•Updated 8 months ago

openai_svg2 file matches

@stevekrouse•Updated 9 months ago

openai_structured_output_demo2 file matches

@arthrod•Updated 9 months ago

honoOpenai2 file matches

@wizos•Updated 10 months ago

openai_structured_output_demo2 file matches

@stevekrouse•Updated 10 months ago

openaiDefiner2 file matches

@willthereader•Updated 10 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