Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Faceless: a switched-off text model gives way to the offline wording

Claudeb6417a0d386d
diff --git a/src/server/faceless.ts b/src/server/faceless.ts
index 815cc116..c06942fd 100644
--- a/src/server/faceless.ts
+++ b/src/server/faceless.ts
@@ -86,6 +86,7 @@ import { llmBackends, probeOllama } from "./providers/llm";
import { fetchRemote } from "./remote-fetch";
import { engineMode, getSetting } from "./settings";
import { fileUrl, saveFile } from "./storage";
+import { offeredModel } from "./model-access";
/**
* Faceless Studio and the Explainer on the server: channels (genre, saved style, narrator, aspect,
@@ -213,7 +214,9 @@ const TOPICS_TIMEOUT_MS = 25_000;
/** One answer from the engine's text model, or null (no LLM, AI helper off, demo mode on, or it failed: `onError` hears why). */
export async function askLlm(engine: Engine, system: string, user: string, o: AskOptions = {}): Promise<string | null> {
if (getSetting("demoMode") === "on") return null;
- const model = getModel(ENGINE_MODELS[engine].write);
+ // A text model switched off in Settings → Models & licences gives way to the offline wording, like no LLM at all.
+ const found = getModel(ENGINE_MODELS[engine].write);
+ const model = found && offeredModel(found);
const route = model?.routes.find((r) => r.op === "write");
if (!model || !route) return null;
await probeOllama();