We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 754192e + 889d31a commit c717b80Copy full SHA for c717b80
1 file changed
app/api/cron/check-research/route.ts
@@ -314,7 +314,10 @@ async function stepInfographicsGenerating(
314
}
315
316
// Determine which prompts to process this cycle
317
- const completedPrompts = Math.floor(progress.completed / 2); // each prompt = 2 images
+ // Divisor matches multiplier from stepResearchComplete: 2 for both orientations, 1 for vertical-only
318
+ const enableHorizontalForCompletion = await getConfigValue('pipeline_config', 'enableHorizontalInfographics', false);
319
+ const divisor = enableHorizontalForCompletion ? 2 : 1;
320
+ const completedPrompts = Math.floor(progress.completed / divisor);
321
const useScenePrompts = sceneImagePrompts.length > 0;
322
323
let batchPrompts: string[];
0 commit comments