Files
sorsfonalak/services/frontend/src/app/admin/modellek/page.tsx
T
fecoandClaude Opus 5.5 27de820091
CI / test (push) Successful in 57s
CI / build (push) Successful in 4m48s
CI / deploy (push) Skipped
Hungarian prompts in Hungarian, model choice per analysis kind, admin regenerate
- The built-in Hungarian system prompts and the user message frame are written in Hungarian
- Admin page Modellek: the model of each analysis kind, chosen from the OpenRouter list
  (structured-output models only) with prices and a cost estimate per analysis
- Admin: regenerate any analysis in place with the current prompt and model (no charge)
- Fix: a failed forecast analysis refunds a forecast unit, not a natal one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-18 13:15:57 +00:00

28 lines
931 B
TypeScript

import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { AdminNav } from "@/components/AdminNav";
import { requireMe } from "@/lib/server";
import { AdminModels } from "./AdminModels";
export const metadata: Metadata = { title: "Modellek" };
export default async function AdminModelsPage() {
const me = await requireMe("/admin/modellek");
if (!me.user.roles.includes("admin")) notFound();
return (
<main className="page" style={{ maxWidth: 1180 }}>
<AdminNav current="/admin/modellek" />
<div className="page-head">
<h1>Modellek</h1>
<p className="muted">
Melyik modell írja az egyes elemzéseket. A változás az ezután kért és az újragenerált elemzésekre hat; a már
elkészültek változatlanok maradnak. A felhasználók a modell nevét sehol nem látják.
</p>
</div>
<AdminModels />
</main>
);
}