Revert CivitAI downloads

Removes the CivitAI work again (765dac2, a1acd8c): the API client and
link parser, CIVITAI_TOKEN, adding CivitAI models, migration 0027 and
the model page changes. Kaname downloads from Hugging Face only, as in
0.21.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-11-11 21:32:02 +01:00
1 parent a1acd8c0a5
commit 7d1a8fb85a
25 files changed
+17 -2849

No files matched your search

@@ -9,7 +9,5 @@ export const POST = withAuth<RouteContext<"/api/models/[id]/hub-check">>(async (
const model = await getCheckedModel(id);
if (!model) return apiError(404, "not_found", "Model not found.");
if (model.source === "local") return apiError(409, "local_model", "This is a local model without a Hugging Face repo.");
// Checking CivitAI for new versions comes with CivitAI updates; the Hub would report it missing.
if (model.source === "civitai") return apiError(409, "civitai_model", "Checks for new CivitAI versions aren't available yet.");
return NextResponse.json(await checkHub(model));
});