You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run//%22mailto:kurt@sachersolutions.ca/%22?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 3236 results for "openai"(1064ms)
1import { nanoid } from "https://deno.land/x/nanoid@v3.0.0/mod.ts";
2import { blob } from "https://esm.town/v/std/blob?v=11";
3import { OpenAI } from "https://esm.town/v/std/openai?v=4";
45const AUDIT_DEPTH_INTERVAL = 2;
4041// --- BACKEND LOGIC ---
42const openai = new OpenAI();
4344async function callAI(
47): Promise<Prerequisite[]> {
48try {
49const completion = await openai.chat.completions.create({
50model: "gpt-4o",
51messages: [
88Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to create a fresh table.
8990### OpenAI
9192```ts
93import { OpenAI } from "https://esm.town/v/std/openai";
94const openai = new OpenAI();
95const completion = await openai.chat.completions.create({
96messages: [
97{ role: "user", content: "Say hello in a creative way" },