Public
HTTP (deprecated)
  • stevekrouse avatar
    fetchJSON
    @stevekrouse
    An interactive, runnable TypeScript val by stevekrouse
    Script
  • yawnxyz avatar
    ai
    @yawnxyz
    An http and class wrapper for Vercel's AI SDK Usage: Groq: https://yawnxyz-ai.web.val.run/generate?prompt="tell me a beer joke"&provider=groq&model=llama3-8b-8192 Perplexity: https://yawnxyz-ai.web.val.run/generate?prompt="what's the latest phage directory capsid & tail article about?"&provider=perplexity Mistral: https://yawnxyz-ai.web.val.run/generate?prompt="tell me a joke?"&provider=mistral&model="mistral-small-latest" async function calculateEmbeddings(text) { const url = `https://yawnxyz-ai.web.val.run/generate?embed=true&value=${encodeURIComponent(text)}`; try { const response = await fetch(url); const data = await response.json(); return data; } catch (error) { console.error('Error calculating embeddings:', error); return null; } }
    HTTP (deprecated)
1
Next
yawnxyz-sidebartoarchive.web.val.run
June 12, 2024