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/$1?q=openai&page=145&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 2154 results for "openai"(1988ms)

webpage_summarizermain.tsx4 matches

@spinningideas•Updated 5 months ago
228 const webpageText = await webpageResponse.text();
229
230 // Use OpenAI as Claude proxy
231 const { OpenAI } = await import("https://esm.town/v/std/openai");
232 const openai = new OpenAI();
233
234 const completion = await openai.chat.completions.create({
235 messages: [
236 {

reflective_qamain.tsx3 matches

@spinningideas•Updated 5 months ago
339 const { question } = await request.json();
340
341 const { OpenAI } = await import("https://esm.town/v/std/openai");
342 const openai = new OpenAI();
343
344 const completion = await openai.chat.completions.create({
345 messages: [
346 {

getShowcaseValsmain.tsx4 matches

@stevekrouse•Updated 5 months ago
1import { OpenAI } from "https://esm.sh/openai";
2import { zodResponseFormat } from "https://esm.sh/openai/helpers/zod";
3import { z } from "https://esm.sh/zod";
4import { zip } from "https://esm.town/v/pomdtr/sql";
42}, { concurrency: 3 });
43
44const openai = new OpenAI();
45
46const ValDescriptions = z.object({
50
51async function getDescriptions(val) {
52 const completion = await openai.beta.chat.completions.parse({
53 model: "gpt-4o-mini",
54 messages: [

reflective_qamain.tsx3 matches

@stevekrouse•Updated 5 months ago
339 const { question } = await request.json();
340
341 const { OpenAI } = await import("https://esm.town/v/std/openai");
342 const openai = new OpenAI();
343
344 const completion = await openai.chat.completions.create({
345 messages: [
346 {

byobmain.tsx3 matches

@vawogbemi•Updated 5 months ago
1import { zodResponseFormat } from "https://esm.sh/openai/helpers/zod";
2import { z } from "https://esm.sh/zod";
3import { email } from "https://esm.town/v/std/email";
4import { OpenAI } from "https://esm.town/v/std/openai";
5
6export default async function(e: Email) {
7 const client = new OpenAI();
8
9 const Messages = z.object({

byobREADME.md1 match

@vawogbemi•Updated 5 months ago
11
12### Toolings
13* Llms can uses [tools](https://platform.openai.com/docs/guides/function-calling), meaning you can make this an agent and a whole lot more useful.
14
15

valreadmegeneratormain.tsx3 matches

@prashamtrivedi•Updated 5 months ago
177 }
178
179 const { OpenAI } = await import("https://esm.town/v/std/openai");
180 const openai = new OpenAI();
181
182 const valTownClient = new ValTown({
197
198 try {
199 const completion = await openai.chat.completions.create({
200 model: "gpt-4o",
201 messages: [

valreadmegeneratorREADME.md1 match

@prashamtrivedi•Updated 5 months ago
43- **Deno:** The server-side environment.
44- **ValTown SDK:** Integrated to fetch Val details.
45- **OpenAI GPT-4:** To generate natural language README content.
46- **JavaScript Modules (ESM):** For seamless module imports.
47

gpt4o_imagesmain.tsx3 matches

@bao•Updated 6 months ago
1import { OpenAI } from "https://esm.town/v/std/openai";
2
3const openai = new OpenAI();
4const completion = await openai.chat.completions.create({
5 "messages": [
6 {

emojiVectorEmbeddingsmain.tsx5 matches

@maxm•Updated 6 months ago
2import emojis from "npm:emojis-list";
3import * as nodeEmoji from "npm:node-emoji";
4import { OpenAI } from "npm:openai";
5
6// Initialize OpenAI client
7const openai = new OpenAI();
8
9await sqlite.batch([
16// Get embedding for a single emoji
17async function getEmbedding(emoji: string): Promise<number[]> {
18 const result = await openai.embeddings.create({
19 input: emoji,
20 model: "text-embedding-3-small",
82// // Get embedding for a single emoji
83// async function getEmbedding(emoji: string): Promise<number[]> {
84// const result = await openai.embeddings.create({
85// input: emoji,
86// model: "text-embedding-3-small",

openai-client1 file match

@cricks_unmixed4u•Updated 3 days ago

openai_enrichment6 file matches

@stevekrouse•Updated 5 days ago
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
kwhinnery_openai