Nodes/GALIAIS-Nodes/GALIAIS-Nodes Project Config
ComfyUI Node

GALIAIS-Nodes Project Config

The Pack's Central Settings Hub and AI Provider

By GALIAIS·Created 3 months ago·Updated 3 months ago· 0
GALIAIS-Nodes Project Config
  • DB
  • Tag黑名单
  • 项目配置
  • AI服务商
  • Embedding服务商
  • 配置JSON
DB路径
默认语言zh-CN
允许NSFWfalse
默认输出格式Anima
默认去重true
默认负面预设标准
AI服务商URL
AI密钥或环境变量
AI模型
Embedding模型

GALIAIS-Nodes has a lot of settings, and most of them are the same across a whole project: which dictionary you use, whether NSFW is allowed, what format the prompts come out in, what the default negative is, and - most importantly - the AI endpoint. The Project Config node exists so you set those once and wire its outputs everywhere, instead of re-typing an API key into a dozen nodes.

It's the pack's central configuration object, and its two most-used outputs double as the AI provider and the embedding provider that other nodes accept as inputs.

How it works

The inputs split into project defaults and AI credentials:

  • DB路径 (DB path) - your dictionary. The DB optional input lets you take it from an already-loaded DB instead.
  • 默认语言 - currently only zh-CN is offered. The whole pack is Chinese-first, and this is the default all its nodes inherit.
  • 允许NSFW - the project-wide NSFW policy. Nodes that take a project config (Prompt Inspector V2, Prompt Profile) inherit this instead of asking you again.
  • 默认输出格式 - Anima (the pack's default; Anima-style tag+score formatting) or 通用Danbooru (general Danbooru).
  • 默认去重 (default dedupe) and 默认负面预设 (default negative preset) - the project-wide defaults.
  • AI服务商URL, AI密钥或环境变量, AI模型, Embedding模型 - the AI setup. The key accepts a literal value or env:VAR_NAME / $VAR_NAME to read from the environment. The node splits LLM vs. embedding models automatically based on the name (it recognizes bge-, e5-, jina-embeddings and friends as embedding models).
  • Tag黑名单 (optional) - bake a blacklist into the whole project.

Four outputs: 项目配置 (the config object - wire into nodes that accept it), AI服务商 (the ready-to-use LLM provider), Embedding服务商, and 配置JSON (the human-readable dump).

Installing it

It's part of the GALIAIS-Nodes pack:

cd ComfyUI/custom_nodes
git clone https://github.com/GALIAIS/GALIAIS-Nodes.git

Restart ComfyUI, or install via ComfyUI Manager ("GALIAIS-Nodes"). No Python dependencies. The dictionary is the only external asset you must supply.

The gotcha - and the payoff

The trap is key hygiene: if you paste a literal key here, it flows into the config JSON and any workflow that displays it. Prefer env:MY_KEY - the node resolves it from the environment and the emitted config masks the secret. That's the right habit in a workflow format that gets shared as image metadata.

The payoff is that Project Config turns into the single lever for your whole graph: switch dictionary, flip NSFW, swap AI models, and every node downstream that takes 项目配置 or AI服务商 follows along. If you're building one of this pack's bigger workflows - say, a character pipeline with an orchestrator - this node is where you configure it, not in fifteen individual places.

CategoryGALIAIS-Nodes/config

Inputs (12)

NameTypeDefaultDescription
DB路径STRING
默认语言COMBOzh-CN1 options: zh-CN
允许NSFWBOOLEANfalse
默认输出格式COMBOAnima2 options: Anima, 通用Danbooru
默认去重BOOLEANtrue
默认负面预设COMBO标准5 options: 标准, 轻量, 手部修复, 写实, 无
AI服务商URLSTRING
AI密钥或环境变量STRING
AI模型STRING
Embedding模型STRING
DBoptGALIAIS_NODES_DANBOORU_DB
Tag黑名单optGALIAIS_NODES_TAG_BLACKLIST

Outputs (4)

NameTypeDescription
项目配置GALIAIS_NODES_PROJECT_CONFIG
AI服务商GALIAIS_NODES_AI_PROVIDER
Embedding服务商GALIAIS_NODES_EMBEDDING_PROVIDER
配置JSONSTRING