You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bsuccess?q=api&page=12&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=api
Returns an array of strings in format "username" or "username/projectName"
Found 11504 results for "api"(663ms)
4import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
56const ELEVENLABS_API_KEY = "sk_352c51c19a910aa3973cc146d057c11a1216da0eec41e0ee";
7const ELON_VOICE_ID = "UgBBYS2sOqTuMpoF3BR0"; // Specific Elon Musk voice ID
860try {
61for (const chunk of chunks) {
62const response = await fetch(`https://api.elevenlabs.io/v1/text-to-speech/${ELON_VOICE_ID}`, {
63method: "POST",
64headers: {
65"Content-Type": "application/json",
66"xi-api-key": ELEVENLABS_API_KEY,
67},
68body: JSON.stringify({
161setError(error.message);
162163// Fallback response if API fails
164const fallbackResponse = {
165role: "Character",
424try {
425const openai = new OpenAI({
426apiKey:
427"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",
428});
432console.log("Received messages:", JSON.stringify(messages, null, 2));
433434// Prepare messages for OpenAI API
435const formattedMessages = [
436{ role: "system", content: CHARACTER_DESCRIPTION },
4export default async function handleCron(interval) {
5const following = await fetchCookie(
6"https://www.instagram.com/api/v1/friendships/375942300/following/?query=miguelse10",
7{
8method: "GET",