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/$%7BsvgDataUrl%7D?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 2237 results for "openai"(3297ms)

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

molarmessengermain.tsx3 matches

@Dentalabcs•Updated 47 mins ago
11 return new Response("Missing message or sender", { status: 400 });
12 }
13 // 🔗 Generate response from OpenAI
14 const aiResponse = await (await fetch("https://api.openai.com/v1/chat/completions", {
15 method: "POST",
16 headers: {
17 "Authorization": `Bearer ${Deno.env.get("OPENAI_API_KEY")}`,
18 "Content-Type": "application/json",
19 },

honeydewmain.tsx5 matches

@legal•Updated 1 hour ago
1import { OpenAI } from "https://esm.town/v/std/openai";
2
3// --- TYPE DEFINITIONS ---
547
548export default async function(req: Request): Promise<Response> {
549 const openai = new OpenAI();
550 const url = new URL(req.url);
551 const CORS_HEADERS = {
566 case "synthesizeProject": {
567 const synthesisContent = `Current Date: ${new Date().toISOString().split("T")[0]}\n\nGoal: ${body.goal}`;
568 const completion = await openai.chat.completions.create({
569 model,
570 messages: [{ role: "system", content: PROJECT_SYNTHESIS_PROMPT }, {
582 JSON.stringify(body.tasks, null, 2)
583 }`;
584 const completion = await openai.chat.completions.create({
585 model,
586 messages: [{ role: "system", content: DAILY_REBALANCE_PROMPT }, {
611 }
612
613 const completion = await openai.chat.completions.create({
614 model,
615 messages: [systemMessage, ...conversation],
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