fix: update free model to meta-llama/llama-3.3-70b-instruct:free

The 3.1-8b:free model is no longer free on OpenRouter.
Switching to llama-3.3-70b:free which is available and actually
a much better model (70B vs 8B).

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy 2026-06-16 22:25:33 +07:00
parent 966907a848
commit 5526265aea

View file

@ -20,7 +20,7 @@ import { cn } from '@/lib/utils';
// ─── OpenRouter free model — no credits, no NIP-98, works for everyone ────────
const OPENROUTER_API_KEY = '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';
const OPENROUTER_URL = 'https://openrouter.ai/api/v1/chat/completions';
const FREE_MODEL = 'meta-llama/llama-3.1-8b-instruct:free';
const FREE_MODEL = 'meta-llama/llama-3.3-70b-instruct:free';
async function callAI(messages: Array<{ role: 'user' | 'assistant'; content: string }>): Promise<string> {
const response = await fetch(OPENROUTER_URL, {