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=146&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 1573 results for "openai"(1269ms)

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

createGeneratedValREADME.md1 match

@andreterron•Updated 1 year ago
1# Use GPT to generate vals on your account!
2
3Describe the val that you need, call this function, and you'll get a new val on your workspace generated by OpenAI's API!
4
5First, ensure you have a [Val Town API Token](https://www.val.town/settings/api), then call `@andreterron.createGeneratedVal({...})` like this [example](https://www.val.town/v/andreterron.untitled_tomatoKiwi):

telegramBotHandlerREADME.md1 match

@stevekrouse•Updated 1 year ago
155. Message @ValTownBot the express endpoint you copied
16
176. You'll also need an `openai` key in [your secrets](/settings/secrets) for this particular DallE bot to work
18
19Migrated from folder: Archive/telegramBotHandler

openaiREADME.md5 matches

@stevekrouse•Updated 1 year ago
1# OpenAI ChatGPT helper function
2
3This val uses your OpenAI token if you have one, and the @std/openai if not, so it provides limited OpenAI usage for free.
4
5```ts
6import { chat } from "https://esm.town/v/stevekrouse/openai";
7
8const { content } = await chat("Hello, GPT!");
11
12```ts
13import { chat } from "https://esm.town/v/stevekrouse/openai";
14
15const { content } = await chat(
23```
24
25Migrated from folder: Archive/openai

chatSampleFunctionTaggingREADME.md1 match

@webup•Updated 1 year ago
1Migrated from folder: openai/samples/functions/chatSampleFunctionTagging

chatSampleFunctionExtractionREADME.md1 match

@webup•Updated 1 year ago
1Migrated from folder: openai/samples/functions/chatSampleFunctionExtraction

chatSampleFunctionMultipleREADME.md1 match

@webup•Updated 1 year ago
1Migrated from folder: openai/samples/functions/chatSampleFunctionMultiple

telegramDalleBotREADME.md1 match

@hootz•Updated 1 year ago
1# Telegram DALLE Bot
2
3A personal telegram bot you can message to create images with OpenAI's [DALLE](https://openai.com/dall-e-2) ✨
4
5![DALLE: A Macintosh II sitting on a desk, painted by Picasso in his blue period.](https://i.imgur.com/uJrP5mE.png)

textToImageDalleREADME.md1 match

@hootz•Updated 1 year ago
1A wrapper for OpenAI's DALLE API. See the API reference here: https://platform.openai.com/docs/api-reference/images/create?lang=curl

testOpenAI1 file match

@stevekrouse•Updated 52 mins ago

testOpenAI1 file match

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