Back

Version 4

12/16/2024
import OpenAI from "https://esm.sh/openai@4.28.4";

export default async function(req: Request): Promise<Response> {
const LEPTON_API_TOKEN = Deno.env.get('LEPTON_API_TOKEN') || '';
const openai = new OpenAI({
apiKey: LEPTON_API_TOKEN,
baseURL: 'https://llama3-3-70b.lepton.run/api/v1/',
dangerouslyAllowBrowser: true
});

return new Response(
`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quantum AI Interface</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-black text-green-400 font-mono overflow-hidden">
<div class="fixed inset-0 z-0 pointer-events-none">
<div id="matrix-background" class="absolute inset-0 opacity-20"></div>
</div>
<div class="relative z-10 h-screen flex flex-col">
<div class="bg-black border-b border-green-600 p-4 flex justify-between items-center">
<div class="flex items-center">
<div class="text-3xl mr-4">🖥️</div>
<h1 class="text-xl font-bold text-green-300">QUANTUM AI TERMINAL v2.7.3</h1>
</div>
<div id="system-status" class="text-sm">
<span class="text-green-500">● SYSTEM ONLINE</span>
</div>
</div>