Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(civitai): reword fetchCivitaiModel auth error to match Settings UI

Adam Eivyc2d3d322c841
diff --git a/server/lib/civitai.js b/server/lib/civitai.js
index 80502dd0d1..d9fc43c97e 100644
--- a/server/lib/civitai.js
+++ b/server/lib/civitai.js
@@ -197,7 +197,7 @@ export const fetchCivitaiModel = async (modelId, { apiKey, fetchImpl = fetch } =
}
if (res.status === 401 || res.status === 403) {
throw new ServerError(
- `Civitai rejected the request (${res.status}) — set CIVITAI_API_KEY in PortOS Settings if this model is gated`,
+ `Civitai rejected the request (${res.status}) — add a Civitai API key in PortOS Settings (or set the CIVITAI_API_KEY env var) if this model is gated`,
{ status: res.status, code: 'CIVITAI_AUTH' },
);
}