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/image-url.jpg%20%22Optional%20title%22?q=openai&page=172&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 1843 results for "openai"(507ms)

imagesmain.tsx2 matches

@ale_annini•Updated 1 year ago
1import { openaiImages } from "https://esm.town/v/ale_annini/openaiImages";
2
3export const images = openaiImages({ prompt: "a dog", n: 2 });

chatmain.tsx5 matches

@chatgpt•Updated 1 year ago
5 options = {},
6) => {
7 // Initialize OpenAI API stub
8 const { Configuration, OpenAIApi } = await import("https://esm.sh/openai");
9 const configuration = new Configuration({
10 apiKey: process.env.OPENAI,
11 });
12 const openai = new OpenAIApi(configuration);
13 // Request chat completion
14 const messages = typeof prompt === "string"
15 ? [{ role: "user", content: prompt }]
16 : prompt;
17 const { data } = await openai.createChatCompletion({
18 model: "gpt-3.5-turbo-0613",
19 messages,

ListenTomain.tsx1 match

@zzz•Updated 1 year ago
4// https://api.val.town/v1/express/zzz.ListenTo?val=stevekrouse.whatIsValTown
5export async function ListenTo(req, res) {
6 const { val = "zzz.demoOpenAIGPT4Summary" } = req.query;
7 const url = `https://api.val.town/v1/run/${val.replace("@", "")}`
8 const resp = await fetch(url);

scoreAndCombineArticlesREADME.md1 match

@iakovos•Updated 1 year ago
1Migrated from folder: openai/scoreAndCombineArticles

counterfeitPromptREADME.md1 match

@jdan•Updated 1 year ago
1Migrated from folder: openai_function_calling/counterfeitPrompt

openaiFineTuneDataREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: External_APIs/openai/openaiFineTuneData

fineTuningJob1README.md1 match

@stevekrouse•Updated 1 year ago
1null
2
3Migrated from folder: External_APIs/openai/fineTuningJob1

openaiFineTuneREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: External_APIs/openai/openaiFineTune

openaiUploadFileREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: External_APIs/openai/openaiUploadFile

imagesREADME.md1 match

@ale_annini•Updated 1 year ago
1Migrated from folder: OpenAI/images

translateToEnglishWithOpenAI1 file match

@shlmt•Updated 2 weeks ago

testOpenAI1 file match

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