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.

2.2 KB
Raw Blame
import type { ModelDef, ModelRoute, Operation } from "./types";

/**
 * Text steps (translate, write) run on the LLM this install is set up with, inside the Fuobe
 * server (src/server/providers/llm.ts). Kind "text": they only show up where a studio asks for
 * text models (dubbing, scripts, ad copy) and in pipelines, never in the image/video/audio pickers.
 * The route endpoint says which LLMs a model may use: "auto" = Claude when an Anthropic key is
 * set, else a local model; "ollama" = a local model only, whichever server runs it (Ollama, LM Studio,
 * Unsloth Studio or another OpenAI-compatible one; the id predates them): open-source installs never
 * call a paid API, and its translations run on ComfyUI's Qwen3.5 4B workflow when no local model answers.
 */

const llm = (op: Operation, endpoint: "auto" | "ollama"): ModelRoute => ({ op, provider: "llm", endpoint });

/** Languages offered in the translate picker (any language name works). */
export const LLM_LANGUAGES = [
  "English", "Spanish", "French", "German", "Italian", "Portuguese", "Dutch", "Polish", "Russian", "Turkish", "Arabic", "Hebrew",
  "Hindi", "Bengali", "Japanese", "Korean", "Chinese (Simplified)", "Chinese (Traditional)", "Indonesian", "Vietnamese", "Thai",
  "Swedish", "Danish", "Norwegian", "Finnish", "Greek", "Czech", "Ukrainian", "Romanian", "Hungarian", "Swahili", "Tagalog",
];

export const LLM_MODELS: ModelDef[] = [
  {
    id: "text-llm",
    name: "Claude",
    vendor: "Anthropic",
    family: "llm",
    engine: "cloud",
    kind: "text",
    tagline: "Writes scripts, captions and ad copy, and translates subtitles line by line",
    badges: ["top"],
    routes: [llm("translate", "auto"), llm("write", "auto")],
    options: { languages: LLM_LANGUAGES },
    // Claude Opus 5.5 at $4 / $20 per million tokens: a few cents for a page of text.
    pricing: { unit: "request", usd: 0.02, note: "≈ a page of text" },
  },
  {
    id: "oss-text-llm",
    name: "AI writer",
    vendor: "Ollama · LM Studio · Unsloth",
    family: "llm",
    engine: "open",
    kind: "text",
    tagline: "Writing and translation on your own computer",
    badges: ["open"],
    routes: [llm("translate", "ollama"), llm("write", "ollama")],
    options: { languages: LLM_LANGUAGES },
  },
];