You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bart_info.art.src%7D?q=api&page=64&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 11410 results for "api"(1079ms)
8687/**
88* Format chat history for Anthropic API
89*/
90function formatChatHistoryForAI(history) {
314bot.on("message", async (ctx) => {
315try {
316// Get Anthropic API key from environment
317const apiKey = Deno.env.get("ANTHROPIC_API_KEY");
318if (!apiKey) {
319console.error("Anthropic API key is not configured.");
320ctx.reply(
321"I apologize, but I'm not properly configured at the moment. Please inform the household administrator.",
325326// Initialize Anthropic client
327const anthropic = new Anthropic({ apiKey });
328329// Get message text and user info
490// Set webhook if it is not set yet
491if (!isEndpointSet) {
492await bot.api.setWebhook(req.url, {
493secret_token: SECRET_TOKEN,
494});
1// 'Rapid file 0'