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/$%7Bsuccess?q=openai&page=74&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 1616 results for "openai"(774ms)

VOTelCollectormain.tsx2 matches

@boots•Updated 2 months ago
335 "value": {
336 "stringValue":
337 "{\"OPENAI_API_KEY\":\"sk-proj-uoRQ71Oaz16IbDJRJXY5T3BlbkFJgqSSf3Xglg0V0V2FhFrO\",\"ANTHROPIC_API_KEY\":\"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\",\"DATABASE_URL\":\"postgresql://neondb_owner:XaenL6g5WApI@ep-proud-grass-a5r8g74c.us-east-2.aws.neon.tech/neondb?sslmode=require\",\"FPX_ENDPOINT\":\"http://localhost:8788/v1/traces\",\"FPX_LOG_LEVEL\":\"debug\",\"GOOSE_AVATARS\":{}}",
338 },
339 },
785 "key": "fpx.http.request.env",
786 "value": {
787 "stringValue": "{\"OPENAI_API_KEY\":\"sk-proj-uoRQ71Oaz16IbDJRJXY5T3BlbkFJgqSSf3Xglg0V0V2FhFrO\",\"ANTHROPIC_API_KEY\":\"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\",\"DATABASE_URL\":\"postgresql://neondb_owner:XaenL6g5WApI@ep-proud-grass-a5r8g74c.us-east-2.aws.neon.tech/neondb?sslmode=require\",\"FPX_ENDPOINT\":\"http://localhost:8788/v1/traces\",\"FPX_LOG_LEVEL\":\"debug\",\"GOOSE_AVATARS\":{}}"
788 }
789 },

systematicFuchsiaTahrmain.tsx3 matches

@Tanveer•Updated 2 months ago
108export default async function server(request: Request): Promise<Response> {
109 if (request.method === "POST" && new URL(request.url).pathname === "/chat") {
110 const { OpenAI } = await import("https://esm.town/v/std/openai");
111 const openai = new OpenAI();
112
113 const { messages } = await request.json();
114
115 try {
116 const completion = await openai.chat.completions.create({
117 messages: messages,
118 model: "gpt-4o-mini",

luxuriousTanAnacondamain.tsx3 matches

@Tanveer•Updated 2 months ago
108export default async function server(request: Request): Promise<Response> {
109 if (request.method === "POST" && new URL(request.url).pathname === "/chat") {
110 const { OpenAI } = await import("https://esm.town/v/std/openai");
111 const openai = new OpenAI();
112
113 const { messages } = await request.json();
114
115 try {
116 const completion = await openai.chat.completions.create({
117 messages: messages,
118 model: "gpt-4o-mini",

terrificRoseDolphinmain.tsx3 matches

@Tanveer•Updated 2 months ago
108export default async function server(request: Request): Promise<Response> {
109 if (request.method === "POST" && new URL(request.url).pathname === "/chat") {
110 const { OpenAI } = await import("https://esm.town/v/std/openai");
111 const openai = new OpenAI();
112
113 const { messages } = await request.json();
114
115 try {
116 const completion = await openai.chat.completions.create({
117 messages: messages,
118 model: "gpt-4o-mini",

festiveRosePeacockmain.tsx3 matches

@Tanveer•Updated 2 months ago
108export default async function server(request: Request): Promise<Response> {
109 if (request.method === "POST" && new URL(request.url).pathname === "/chat") {
110 const { OpenAI } = await import("https://esm.town/v/std/openai");
111 const openai = new OpenAI();
112
113 const { messages } = await request.json();
114
115 try {
116 const completion = await openai.chat.completions.create({
117 messages: messages,
118 model: "gpt-4o-mini",

telegramWebhookEchoMessagemain.tsx3 matches

@ynonp•Updated 2 months ago
1import { OpenAI } from "https://esm.town/v/std/openai";
2import { telegramSendMessage } from "https://esm.town/v/vtdocs/telegramSendMessage?v=5";
3import translateToEnglishWithOpenAI from "https://esm.town/v/ynonp/translateToEnglishWithOpenAI";
4
5export const telegramWebhookEchoMessage = async (req: Request) => {
21 const chatId: number = body.message.chat.id;
22
23 const translated = await translateToEnglishWithOpenAI(text);
24 await telegramSendMessage(Deno.env.get("TELEGRAM_BOT_TOKEN"), { chat_id: chatId, text: translated });
25

trustingBronzeHedgehogmain.tsx3 matches

@ynonp•Updated 2 months ago
1import { OpenAI } from "https://esm.town/v/std/openai";
2import { telegramSendMessage } from "https://esm.town/v/vtdocs/telegramSendMessage?v=5";
3import translateToEnglishWithOpenAI from "https://esm.town/v/ynonp/translateToEnglishWithOpenAI";
4
5export const telegramWebhookEchoMessage = async (req: Request) => {
21 const chatId: number = body.message.chat.id;
22
23 const translated = await translateToEnglishWithOpenAI(text);
24 await telegramSendMessage(Deno.env.get("TELEGRAM_BOT_TOKEN"), { chat_id: chatId, text: translated });
25

SpeakEnglishToMe_botmain.tsx3 matches

@ynonp•Updated 2 months ago
1import { OpenAI } from "https://esm.town/v/std/openai";
2import { telegramSendMessage } from "https://esm.town/v/vtdocs/telegramSendMessage?v=5";
3import translateToEnglishWithOpenAI from "https://esm.town/v/ynonp/translateToEnglishWithOpenAI";
4
5export const telegramWebhookEchoMessage = async (req: Request) => {
21 const chatId: number = body.message.chat.id;
22
23 const translated = await translateToEnglishWithOpenAI(text);
24 await telegramSendMessage(Deno.env.get("TELEGRAM_BOT_TOKEN"), { chat_id: chatId, text: translated });
25

admirableWhiteBirdmain.tsx3 matches

@Tanveer•Updated 2 months ago
108export default async function server(request: Request): Promise<Response> {
109 if (request.method === "POST" && new URL(request.url).pathname === "/chat") {
110 const { OpenAI } = await import("https://esm.town/v/std/openai");
111 const openai = new OpenAI();
112
113 const { messages } = await request.json();
114
115 try {
116 const completion = await openai.chat.completions.create({
117 messages: messages,
118 model: "gpt-4o-mini",

caringCoralMoosemain.tsx3 matches

@Tanveer•Updated 2 months ago
108export default async function server(request: Request): Promise<Response> {
109 if (request.method === "POST" && new URL(request.url).pathname === "/chat") {
110 const { OpenAI } = await import("https://esm.town/v/std/openai");
111 const openai = new OpenAI();
112
113 const { messages } = await request.json();
114
115 try {
116 const completion = await openai.chat.completions.create({
117 messages: messages,
118 model: "gpt-4o-mini",

translateToEnglishWithOpenAI1 file match

@shlmt•Updated 4 days ago

testOpenAI1 file match

@stevekrouse•Updated 6 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": "*",