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.

Prices: Shorts and Mixed Media model menus say "Self-hosted only" to visitors

Adarsh7247b40b7aa5
diff --git a/src/components/mixed-media/mixed-studio.tsx b/src/components/mixed-media/mixed-studio.tsx
index 29a5d1b3..208c9575 100644
--- a/src/components/mixed-media/mixed-studio.tsx
+++ b/src/components/mixed-media/mixed-studio.tsx
@@ -336,6 +336,8 @@ function Editor({
const [pickedModel, setModel] = useState<Record<string, string>>({});
const modelId = (models.some((m) => m.id === pickedModel[slot]) && pickedModel[slot]) || models[0]?.id;
const model = models.find((m) => m.id === modelId);
+ // An open model is free on a self-hosted Fuobe: a guest or an account reads that, not "your GPU".
+ const priceOf = (m?: RestyleModelInfo) => (visitor && m?.engine === "open" ? "Self-hosted only" : m?.price);
const original = modelId === MIXED_ORIGINAL;
const [previewId, setPreviewId] = useState<string | null>(null);
// Every main step of the latest render (cut → frames or restyle → sound), so a failed step shows its own error.
@@ -594,7 +596,7 @@ function Editor({
<SelectValue>
<span className="flex min-w-0 items-center gap-2">
<span className="truncate">{model?.name}</span>
- <span className="shrink-0 font-mono text-[11px] text-muted-foreground">{model?.price}</span>
+ <span className="shrink-0 font-mono text-[11px] text-muted-foreground">{priceOf(model)}</span>
</span>
</SelectValue>
</SelectTrigger>
@@ -606,7 +608,7 @@ function Editor({
<span className="flex min-w-0 flex-col">
<span className="flex min-w-0 items-center gap-2">
<span className="truncate">{m.name}</span>
- <span className="shrink-0 font-mono text-[11px] text-muted-foreground">{m.price}</span>
+ <span className="shrink-0 font-mono text-[11px] text-muted-foreground">{priceOf(m)}</span>
</span>
{issue && <span className="text-[11px] text-muted-foreground">{issue}</span>}
</span>
@@ -617,7 +619,7 @@ function Editor({
</Select>
) : (
<div className="rounded-lg border px-3 py-2 text-[13px]">
- <span className="font-medium">{model?.name ?? "—"}</span> <span className="text-muted-foreground">· {model?.price}</span>
+ <span className="font-medium">{model?.name ?? "—"}</span> <span className="text-muted-foreground">· {priceOf(model)}</span>
</div>
)}
{model && (
diff --git a/src/components/shorts/shorts-studio.tsx b/src/components/shorts/shorts-studio.tsx
index e09e7067..12e4af0b 100644
--- a/src/components/shorts/shorts-studio.tsx
+++ b/src/components/shorts/shorts-studio.tsx
@@ -338,6 +338,8 @@ function SetupPanel({
const pickedOn = models.some((m) => m.id === pickedModel[engine]) ? pickedModel[engine] : "";
const modelId = pickedOn || (customRefs > 0 && engine === "cloud" && refModel ? refModel : models[0]?.id);
const model = models.find((m) => m.id === modelId);
+ // An open model is free on a self-hosted Fuobe: a guest or an account reads that, not "your GPU".
+ const priceOf = (m?: ModelChoice) => (visitor && m?.engine === "open" ? "Self-hosted only" : m?.price);
const duration = clipDuration(clip);
const actions = useShortsActions();
const presetType = SHORTS_PRESETS.find((p) => p.id === presetId)?.type;
@@ -490,7 +492,7 @@ function SetupPanel({
<SelectValue>
<span className="flex min-w-0 items-center gap-2">
<span className="truncate">{model?.name}</span>
- <span className="shrink-0 font-mono text-[11px] text-muted-foreground">{model?.price}</span>
+ <span className="shrink-0 font-mono text-[11px] text-muted-foreground">{priceOf(model)}</span>
</span>
</SelectValue>
</SelectTrigger>
@@ -499,7 +501,7 @@ function SetupPanel({
<SelectItem key={m.id} value={m.id}>
<span className="flex min-w-0 items-center gap-2">
<span className="truncate">{m.name}</span>
- <span className="shrink-0 font-mono text-[11px] text-muted-foreground">{m.price}</span>
+ <span className="shrink-0 font-mono text-[11px] text-muted-foreground">{priceOf(m)}</span>
{m.refs > 0 && <span className="shrink-0 rounded bg-brand-faint px-1 text-[10px] text-brand-text">refs</span>}
</span>
</SelectItem>
@@ -508,7 +510,7 @@ function SetupPanel({
</Select>
) : (
<div className="rounded-lg border px-3 py-2 text-[13px]">
- <span className="font-medium">{model?.name ?? "—"}</span> <span className="text-muted-foreground">· {model?.price}</span>
+ <span className="font-medium">{model?.name ?? "—"}</span> <span className="text-muted-foreground">· {priceOf(model)}</span>
</div>
)}
{model && (