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/$%7Bart_info.art.src%7D?q=openai&page=114&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 1589 results for "openai"(1572ms)

8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
323
324 const contextWindow: any = await valleGetValsContextWindow(model);
325 const openai = new OpenAI();
326 const stream = await openai.chat.completions.create({
327 model,
328 stream: true,
8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
333
334 const contextWindow: any = await valleGetValsContextWindow(model);
335 const openai = new OpenAI();
336 const stream = await openai.chat.completions.create({
337 model,
338 stream: true,
8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
302
303 const contextWindow: any = await valleGetValsContextWindow(model);
304 const openai = new OpenAI();
305 const stream = await openai.chat.completions.create({
306 model,
307 stream: true,
8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
311
312 const contextWindow: any = await valleGetValsContextWindow(model);
313 const openai = new OpenAI();
314 const stream = await openai.chat.completions.create({
315 model,
316 stream: true,
8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
212
213 const contextWindow: any = await valleGetValsContextWindow(model);
214 const openai = new OpenAI();
215 const stream = await openai.chat.completions.create({
216 model,
217 stream: true,
8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
287
288 const contextWindow: any = await valleGetValsContextWindow(model);
289 const openai = new OpenAI();
290 const stream = await openai.chat.completions.create({
291 model,
292 stream: true,
8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
323
324 const contextWindow: any = await valleGetValsContextWindow(model);
325 const openai = new OpenAI();
326 const stream = await openai.chat.completions.create({
327 model,
328 stream: true,
8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
187
188 const contextWindow: any = await valleGetValsContextWindow(model);
189 const openai = new OpenAI();
190 const stream = await openai.chat.completions.create({
191 model,
192 stream: true,
8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
207
208 const contextWindow: any = await valleGetValsContextWindow(model);
209 const openai = new OpenAI();
210 const stream = await openai.chat.completions.create({
211 model,
212 stream: true,
8import { Hono } from "npm:hono@3";
9import _ from "npm:lodash@4";
10import OpenAI from "npm:openai";
11import { renderToString } from "npm:react-dom/server";
12
299
300 const contextWindow: any = await valleGetValsContextWindow(model);
301 const openai = new OpenAI();
302 const stream = await openai.chat.completions.create({
303 model,
304 stream: true,

testOpenAI1 file match

@stevekrouse•Updated 1 day ago

testOpenAI1 file match

@shouser•Updated 4 days ago
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": "*",