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=60&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 1718 results for "openai"(838ms)

gentleRoseGalliformmain.tsx3 matches

@dcm31โ€ขUpdated 1 month ago
67 console.log("๐ŸŽค Sending request to Groq Whisper API");
68 const start = Date.now();
69 const response = await fetch("https://api.groq.com/openai/v1/audio/transcriptions", {
70 method: "POST",
71 headers: {
157 console.log("๐Ÿ”ต Sending request to Groq API");
158 const start = Date.now();
159 const response = await fetch("https://api.groq.com/openai/v1/chat/completions", {
160 method: "POST",
161 headers: {
213 console.log("๐Ÿ”Š Sending request to Groq Speech API");
214 const start = Date.now();
215 const response = await fetch("https://api.groq.com/openai/v1/audio/speech", {
216 method: "POST",
217 headers: {

groqAudioChatgroqAudioChat3 matches

@dcm31โ€ขUpdated 1 month ago
68 console.log("๐ŸŽค Sending request to Groq Whisper API");
69 const start = Date.now();
70 const response = await fetch("https://api.groq.com/openai/v1/audio/transcriptions", {
71 method: "POST",
72 headers: {
158 console.log("๐Ÿ”ต Sending request to Groq API");
159 const start = Date.now();
160 const response = await fetch("https://api.groq.com/openai/v1/chat/completions", {
161 method: "POST",
162 headers: {
214 console.log("๐Ÿ”Š Sending request to Groq Speech API");
215 const start = Date.now();
216 const response = await fetch("https://api.groq.com/openai/v1/audio/speech", {
217 method: "POST",
218 headers: {

groqAudioChat_migratedmain.tsx3 matches

@dcm31โ€ขUpdated 1 month ago
68 console.log("๐ŸŽค Sending request to Groq Whisper API");
69 const start = Date.now();
70 const response = await fetch("https://api.groq.com/openai/v1/audio/transcriptions", {
71 method: "POST",
72 headers: {
158 console.log("๐Ÿ”ต Sending request to Groq API");
159 const start = Date.now();
160 const response = await fetch("https://api.groq.com/openai/v1/chat/completions", {
161 method: "POST",
162 headers: {
214 console.log("๐Ÿ”Š Sending request to Groq Speech API");
215 const start = Date.now();
216 const response = await fetch("https://api.groq.com/openai/v1/audio/speech", {
217 method: "POST",
218 headers: {

groqAudioChatmain.tsx3 matches

@yawnxyzโ€ขUpdated 1 month ago
68 console.log("๐ŸŽค Sending request to Groq Whisper API");
69 const start = Date.now();
70 const response = await fetch("https://api.groq.com/openai/v1/audio/transcriptions", {
71 method: "POST",
72 headers: {
158 console.log("๐Ÿ”ต Sending request to Groq API");
159 const start = Date.now();
160 const response = await fetch("https://api.groq.com/openai/v1/chat/completions", {
161 method: "POST",
162 headers: {
214 console.log("๐Ÿ”Š Sending request to Groq Speech API");
215 const start = Date.now();
216 const response = await fetch("https://api.groq.com/openai/v1/audio/speech", {
217 method: "POST",
218 headers: {

groqAudioWordLevelmain.tsx1 match

@yawnxyzโ€ขUpdated 1 month ago
37
38 // Call Groq API
39 const response = await fetch("https://api.groq.com/openai/v1/audio/transcriptions", {
40 method: "POST",
41 headers: {

OpenTowniesystem_prompt.txt4 matches

@arfanโ€ขUpdated 1 month ago
137Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to create a fresh table.
138
139### OpenAI
140```ts
141import { OpenAI } from "https://esm.town/v/std/openai";
142const openai = new OpenAI();
143const completion = await openai.chat.completions.create({
144 messages: [
145 { role: "user", content: "Say hello in a creative way" },

cerebras_codermain.tsx3 matches

@Beagluckyโ€ขUpdated 1 month ago
140 const triggerCodeAnalysis = async (codeToAnalyze) => {
141 try {
142 const { OpenAI } = await import("https://esm.town/v/std/openai");
143 const openai = new OpenAI();
144
145 const analysis = await openai.chat.completions.create({
146 messages: [
147 {

dazzlingCoffeeTigermain.tsx2 matches

@ajaxโ€ขUpdated 1 month ago
1"import { openai } from "npm:@ai-sdk/openai";
2import { generateText } from "npm:ai";
3
10 // Assuming no specific fields are required in the body for generating jokes
11 const { text: joke } = await generateText({
12 model: openai("gpt-4o-mini"),
13 system: "You are a creative comedian.",
14 prompt: "Generate a random joke that is funny and original.",

OpenTowniesystem_prompt.txt4 matches

@maxmโ€ขUpdated 1 month ago
137Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to create a fresh table.
138
139### OpenAI
140```ts
141import { OpenAI } from "https://esm.town/v/std/openai";
142const openai = new OpenAI();
143const completion = await openai.chat.completions.create({
144 messages: [
145 { role: "user", content: "Say hello in a creative way" },

subtleAmaranthLoonmain.tsx4 matches

@bambareโ€ขUpdated 1 month ago
1import { email } from "https://esm.town/v/std/email";
2import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
3import { OpenAI } from "https://esm.town/v/std/openai";
4
5export default async function (e: Email) {
6 const KEY = "subtleAmaranthLoon";
7 const openai = new OpenAI();
8 const sqlite = await import("https://esm.town/v/stevekrouse/sqlite");
9
25 if (isQuotationRequest) {
26 try {
27 // Generate quotation using OpenAI
28 const completion = await openai.chat.completions.create({
29 messages: [
30 {

translateToEnglishWithOpenAI1 file match

@shlmtโ€ขUpdated 1 week ago

testOpenAI1 file match

@stevekrouseโ€ขUpdated 1 week 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": "*",