docs: remove hardcoded pipeline/batch limits, default to unlimited

Pipeline steps and batch size are now unlimited by default. The old
"20 steps" and "200 images" figures had no basis in the actual code
(MAX_BATCH_SIZE already defaulted to 0/unlimited). Both remain
configurable via MAX_PIPELINE_STEPS and MAX_BATCH_SIZE env vars.

Also includes updated hardware requirements and sidebar nav from
prior documentation audit.
This commit is contained in:
ashim-hq
2026-04-23 20:50:38 +08:00
parent 4bfbc51b77
commit 8aea77b4be
7 changed files with 148 additions and 40 deletions
+9 -9
View File
@@ -39,23 +39,23 @@ const pipelineStepSchema = z.object({
});
/** Schema for a full pipeline definition. */
const maxSteps = env.MAX_PIPELINE_STEPS > 0 ? env.MAX_PIPELINE_STEPS : 20;
const stepsSchema =
env.MAX_PIPELINE_STEPS > 0
? z
.array(pipelineStepSchema)
.min(1, "Pipeline must have at least one step")
.max(env.MAX_PIPELINE_STEPS, "Pipeline exceeds maximum steps")
: z.array(pipelineStepSchema).min(1, "Pipeline must have at least one step");
const pipelineDefinitionSchema = z.object({
steps: z
.array(pipelineStepSchema)
.min(1, "Pipeline must have at least one step")
.max(maxSteps, "Pipeline exceeds maximum steps"),
steps: stepsSchema,
});
/** Schema for saving a pipeline. */
const savePipelineSchema = z.object({
name: z.string().min(1, "Pipeline name is required").max(100),
description: z.string().max(500).optional(),
steps: z
.array(pipelineStepSchema)
.min(1, "Pipeline must have at least one step")
.max(maxSteps, "Pipeline exceeds maximum steps"),
steps: stepsSchema,
});
export async function registerPipelineRoutes(app: FastifyInstance): Promise<void> {