- generation_errors: every failed attempt (model, attempt, outcome, duration); admin Hibanapló page and GET /v1/admin/errors; kept 90 days - The waiting page counts from when the text was asked for (requested_at), not from the page load, so a reload no longer restarts it - It says when an attempt failed and is retried, and when a failed text's unit was given back; admins see the error Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
28 lines
843 B
TypeScript
28 lines
843 B
TypeScript
import type { Metadata } from "next";
|
|
import { notFound } from "next/navigation";
|
|
|
|
import { AdminNav } from "@/components/AdminNav";
|
|
import { requireMe } from "@/lib/server";
|
|
|
|
import { ErrorLog } from "./ErrorLog";
|
|
|
|
export const metadata: Metadata = { title: "Hibanapló" };
|
|
|
|
export default async function AdminErrorsPage() {
|
|
const me = await requireMe("/admin/hibak");
|
|
if (!me.user.roles.includes("admin")) notFound();
|
|
return (
|
|
<main className="page" style={{ maxWidth: 1180 }}>
|
|
<AdminNav current="/admin/hibak" />
|
|
<div className="page-head">
|
|
<h1>Hibanapló</h1>
|
|
<p className="muted">
|
|
Az elemzések, válaszok és prompt-próbák minden sikertelen próbálkozása, a legújabb elöl. A worker írja; 90 napig
|
|
őrizzük.
|
|
</p>
|
|
</div>
|
|
<ErrorLog />
|
|
</main>
|
|
);
|
|
}
|