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=fetch&page=7&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=fetch

Returns an array of strings in format "username" or "username/projectName"

Found 11107 results for "fetch"(605ms)

signedFetch1 file match

@stevekrouse•Updated 1 year ago

fetchWebpage2 file matches

@jdan•Updated 1 year ago

fetchRss2 file matches

@svoisen•Updated 1 year ago

fetchNewPublicGitHubRepos2 file matches

@stevekrouse•Updated 1 year ago

fetch_docs2 file matches

@andreterron•Updated 1 year ago

fetch2 file matches

@vladimyr•Updated 1 year ago

fetch_example22 file matches

@vladimyr•Updated 1 year ago

fetch_example2 file matches

@vladimyr•Updated 1 year ago

fetch2 file matches

@std•Updated 1 year ago

fetchNewestVals1 file match

@vladimyr•Updated 1 year ago

pineconenew-file-6541.tsx14 matches

@mees•Updated 35 mins ago
45
46 // Create a quick thread for parsing
47 const threadResponse = await fetch("https://api.openai.com/v1/threads", {
48 method: "POST",
49 headers: {
58
59 // Add the query
60 await fetch(`https://api.openai.com/v1/threads/${thread.id}/messages`, {
61 method: "POST",
62 headers: {
72
73 // Run the parser assistant
74 const runResponse = await fetch(`https://api.openai.com/v1/threads/${thread.id}/runs`, {
75 method: "POST",
76 headers: {
99 await new Promise(resolve => setTimeout(resolve, 500));
100
101 const statusResponse = await fetch(
102 `https://api.openai.com/v1/threads/${thread.id}/runs/${run.id}`,
103 {
113
114 // Get the response
115 const messagesResponse = await fetch(
116 `https://api.openai.com/v1/threads/${thread.id}/messages?order=desc&limit=1`,
117 {
463 }
464
465 // Create or retrieve thread using raw fetch with v2 headers
466 let thread;
467 if (threadId) {
468 const threadResponse = await fetch(`https://api.openai.com/v1/threads/${threadId}`, {
469 headers: baseHeaders,
470 });
474 thread = await threadResponse.json();
475 } else {
476 const threadResponse = await fetch("https://api.openai.com/v1/threads", {
477 method: "POST",
478 headers: baseHeaders,
499
500 // Add message to thread with v2 headers
501 const messageResponse = await fetch(`https://api.openai.com/v1/threads/${thread.id}/messages`, {
502 method: "POST",
503 headers: baseHeaders,
513
514 // Run the assistant with v2 headers
515 const runResponse = await fetch(`https://api.openai.com/v1/threads/${thread.id}/runs`, {
516 method: "POST",
517 headers: baseHeaders,
734 };
735
736 // Poll for completion using raw fetch with v2 headers
737 let runStatus = run;
738 let allMediaDisplays = [];
747 await new Promise(resolve => setTimeout(resolve, 2000));
748
749 const statusResponse = await fetch(
750 `https://api.openai.com/v1/threads/${thread.id}/runs/${run.id}`,
751 { headers: baseHeaders },
776
777 // Submit tool outputs with v2 headers
778 const toolOutputResponse = await fetch(
779 `https://api.openai.com/v1/threads/${thread.id}/runs/${run.id}/submit_tool_outputs`,
780 {
800
801 // Get the assistant's response with v2 headers
802 const messagesResponse = await fetch(
803 `https://api.openai.com/v1/threads/${thread.id}/messages?order=desc&limit=20`,
804 { headers: baseHeaders },

EnuguRentHome.tsx3 matches

@godinoarts•Updated 52 mins ago
33 }
34
35 // Fetch data from API
36 const [featuredResponse, recentResponse] = await Promise.all([
37 fetch('/api/listings/featured?limit=6'),
38 fetch('/api/listings?limit=8')
39 ]);
40