Files
scan-receipts/scripts/check_luna.mjs
Timo 84b9987c49 Add full application: receipt scanning, auth, billing, and account deletion
Brings the working codebase (Next.js app, auth system, Stripe billing,
Docker/deploy config, tests, docs) into version control on top of the
placeholder initial commit, and adds account self-deletion (Danger Zone
in Settings, password + typed-email confirmation, cascading DB cleanup,
Stripe cancellation) per GDPR right-to-erasure.

Excludes local build caches, node_modules, and internal agent scratch
files; .gitignore hardened to keep those out going forward.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-19 20:59:04 +02:00

31 lines
997 B
JavaScript

import fs from "fs";
const envContent = fs.readFileSync(".env.local", "utf-8");
const apiKeyMatch = envContent.match(/OPENROUTER_API_KEY=([^\r\n]+)/);
const apiKey = apiKeyMatch ? apiKeyMatch[1].trim() : "";
async function checkLuna56() {
const res = await fetch("https://openrouter.ai/api/v1/models", {
headers: { "Authorization": `Bearer ${apiKey}` }
});
const data = await res.json();
const models = data.data || [];
const matches = models.filter(m =>
m.id.toLowerCase().includes("5.6") ||
m.id.toLowerCase().includes("luna") ||
m.name.toLowerCase().includes("5.6") ||
m.name.toLowerCase().includes("luna")
);
console.log("=== MATCHES FOR '5.6' / 'LUNA' ===");
matches.forEach(m => {
console.log(`- ID: ${m.id}`);
console.log(` Name: ${m.name}`);
console.log(` Modalities: ${JSON.stringify(m.architecture?.modality || 'unknown')}`);
console.log(` Pricing: ${JSON.stringify(m.pricing)}`);
});
}
checkLuna56().catch(console.error);