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/$1?q=openai&page=7&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 2205 results for "openai"(1997ms)

ai_comments_to_tasksindex.ts4 matches

@arthrod•Updated 4 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { OpenAI } from "https://esm.town/v/std/openai";
3import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
4import { encode } from "https://esm.sh/gpt-tokenizer@2.1.2";
12});
13
14const openai = new OpenAI();
15
16// Default token limits - reduced chunk size for better granularity
123
124 try {
125 const completion = await openai.chat.completions.create({
126 messages: [
127 { role: "system", content: systemPrompt },
178
179 try {
180 const completion = await openai.chat.completions.create({
181 messages: [
182 { role: "system", content: systemPrompt },

untitled-9921index.ts1 match

@DevGoku•Updated 4 days ago
38 description: 'Advanced conversational AI for writing, coding, analysis, and creative tasks',
39 category: 'text-ai',
40 url: 'https://chat.openai.com',
41 tags: JSON.stringify(['conversation', 'writing', 'coding', 'analysis']),
42 pricing: 'freemium',

untitled-9921migrations.ts4 matches

@DevGoku•Updated 4 days ago
123 {
124 name: 'DALL-E 3',
125 description: 'OpenAI\'s advanced image generation model with exceptional prompt understanding',
126 category: 'image-gen',
127 url: 'https://openai.com/dall-e-3',
128 tags: JSON.stringify(['openai', 'text-to-image', 'creative', 'advanced']),
129 pricing: 'paid',
130 featured: true,
217 description: 'Advanced conversational AI for writing, coding, analysis, and creative tasks',
218 category: 'text-ai',
219 url: 'https://chat.openai.com',
220 tags: JSON.stringify(['conversation', 'writing', 'coding', 'analysis']),
221 pricing: 'freemium',

xpowersystem_prompt.txt4 matches

@Josmount•Updated 4 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" },

xpower.cursorrules4 matches

@Josmount•Updated 4 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" },

Towniesystem_prompt.txt4 matches

@Josmount•Updated 4 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.cursorrules4 matches

@Josmount•Updated 4 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" },

Towniesystem_prompt.txt4 matches

@philz•Updated 4 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.cursorrules4 matches

@philz•Updated 4 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" },

gissue-rolodexknowledge.md4 matches

@cricks_unmixed4u•Updated 4 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-client1 file match

@cricks_unmixed4u•Updated 1 week ago

openai_enrichment6 file matches

@stevekrouse•Updated 1 week ago
kwhinnery_openai
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