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=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 2240 results for "openai"(2958ms)

openAIStreaming2 file matches

@maxm•Updated 1 year ago

OpenAI2 file matches

@pattysi•Updated 1 year ago

openAiExample2 file matches

@yawnxyz•Updated 1 year ago

openAiHelloWorld2 file matches

@yawnxyz•Updated 1 year ago

openaiUploadFile2 file matches

@yawnxyz•Updated 1 year ago

openaiFineTuneData2 file matches

@stevekrouse•Updated 1 year ago

openaiUploadFile2 file matches

@stevekrouse•Updated 1 year ago

openai2 file matches

@stevekrouse•Updated 1 year ago

OpenAI2 file matches

@pomdtr•Updated 1 year ago

chat_openai1 file match

@cosmo•Updated 1 year ago

honeydewmain.tsx5 matches

@legal•Updated 26 mins ago
1import { OpenAI } from "https://esm.town/v/std/openai";
2
3interface Project {
691
692export default async function(req: Request): Promise<Response> {
693 const openai = new OpenAI();
694 const url = new URL(req.url);
695 const CORS_HEADERS = {
710 case "synthesizeProject": {
711 const synthesisContent = `Current Date: ${new Date().toISOString().split("T")[0]}\n\nGoal: ${body.goal}`;
712 const completion = await openai.chat.completions.create({
713 model,
714 messages: [{ role: "system", content: PROJECT_SYNTHESIS_PROMPT }, {
726 JSON.stringify(body.tasks, null, 2)
727 }`;
728 const completion = await openai.chat.completions.create({
729 model,
730 messages: [{ role: "system", content: DAILY_REBALANCE_PROMPT }, {
755 }
756
757 const completion = await openai.chat.completions.create({
758 model,
759 messages: [systemMessage, ...conversation],

anchorPDSval-town.md4 matches

@tijs•Updated 1 hour ago
87Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or_3) to create a fresh table.
88
89### OpenAI
90
91```ts
92import { OpenAI } from "https://esm.town/v/std/openai";
93const openai = new OpenAI();
94const completion = await openai.chat.completions.create({
95 messages: [
96 { 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