Release / release (push) Successful in 12m32s
Kaname keeps two jobs: the model downloader and benchmarks. Benchmarks now run against endpoints (any OpenAI-compatible server added by URL, with an optional server-side API key and hand-written hardware notes) instead of deployments Kaname started itself. Removed: runtimes, deployments, sweeps, resource telemetry, hardware detection, the /api/v1 API with tokens and guardrails, and all Docker access. The quality eval's coding tests run in a network-less sandbox container that shares only an exchange folder with the worker. The previous state is kept in branch backup / tag backup-0.14.3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
585 B
TypeScript
17 lines
585 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { withAuth } from "@/lib/api-auth";
|
|
import { apiError, handleApiError } from "@/lib/api-errors";
|
|
import { EndpointError, testEndpoint } from "@/lib/endpoints";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
/** Test a new endpoint's form values before saving. */
|
|
export const POST = withAuth(async (req) => {
|
|
try {
|
|
return NextResponse.json(await testEndpoint(null, await req.json()));
|
|
} catch (err) {
|
|
if (err instanceof EndpointError) return apiError(err.status, err.code, err.message);
|
|
return handleApiError(err);
|
|
}
|
|
});
|