Files
Kaname/src/app/api/endpoints/test/route.ts
T
Pascal LinxweilerandClaude Opus 5.5 276108932d
Release / release (push) Successful in 12m32s
Release 0.15.0: endpoints instead of deployments
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>
2026-10-26 21:43:42 +01:00

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);
}
});