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/...?q=openai&page=1&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 2221 results for "openai"(2511ms)

openai-client1 file match

@cricks_unmixed4u•Updated 1 week ago

openai_enrichment6 file matches

@stevekrouse•Updated 1 week ago

openai_enrichment1 file match

@charmaine•Updated 1 week ago

openai_enrichment2 file matches

@charmaine•Updated 1 week ago

openaiproxy2 file matches

@MM05•Updated 1 week ago

openaiproxy2 file matches

@skutaans•Updated 2 weeks ago

token-server1 file match

@kwhinnery_openai•Updated 2 weeks ago
Mint tokens to use with the OpenAI Realtime API for WebRTC

openai_api_project_Pauline2 file matches

@Paulineseemann•Updated 2 weeks ago

translateToEnglishWithOpenAI1 file match

@shlmt•Updated 1 month ago

testOpenAI1 file match

@stevekrouse•Updated 1 month ago

GenerateResponsesGenerateResponses.ts7 matches

@Dentalabcs•Updated 1 hour ago
11 console.log("Received:", message, "from", from);
12
13 // Get OpenAI API key
14 const openaiKey = Deno.env.get("OPENAI_API_KEY")!;
15
16 // 1. Ask OpenAI for a response
17 let aiResponse = "Sorry, something went wrong.";
18 try {
19 const openaiRes = await fetch("https://api.openai.com/v1/chat/completions", {
20 method: "POST",
21 headers: {
22 Authorization: `Bearer ${openaiKey}`,
23 "Content-Type": "application/json",
24 },
39 });
40
41 const data = await openaiRes.json();
42 aiResponse = data.choices?.[0]?.message?.content ?? aiResponse;
43 } catch (err) {
44 console.error("OpenAI error:", err);
45 }
46

huyhieu.cursorrules4 matches

@lanly•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" },
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