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/$%7Bsuccess?q=openai&page=6&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 1572 results for "openai"(1369ms)

openAiFreeUsage2 file matches

@patrickjm•Updated 1 year ago

openaiOpenAPI2 file matches

@stevekrouse•Updated 1 year ago

openAiTextCompletion2 file matches

@patrickjm•Updated 1 year ago

openaiCompletion2 file matches

@fgeierst•Updated 1 year ago

demoOpenAIGPTSummary2 file matches

@zzz•Updated 1 year ago

openAiFreeQuotaExceeded2 file matches

@patrickjm•Updated 1 year ago

demoOpenAIGPT4Summary2 file matches

@zzz•Updated 1 year ago

openAiModeration2 file matches

@patrickjm•Updated 1 year ago

OpenAISummary2 file matches

@zzz•Updated 1 year ago

openaiFineTune2 file matches

@stevekrouse•Updated 1 year ago

Towniesystem_prompt.txt4 matches

@valdottown•Updated 3 hours 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" },

Towniesystem_prompt.txt4 matches

@std•Updated 3 hours 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" },
lost1991
import { OpenAI } from "https://esm.town/v/std/openai"; export default async function(req: Request): Promise<Response> { if (req.method === "OPTIONS") { return new Response(null, { headers: { "Access-Control-Allow-Origin": "*",