From 5c29e935499a446c0302ff192015a613d34f3653 Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Tue, 10 Dec 2024 22:01:59 +0000 Subject: [PATCH] Increase max attempts for image generation completion --- src/commands/image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/image.ts b/src/commands/image.ts index 7d93a65..3f068a7 100644 --- a/src/commands/image.ts +++ b/src/commands/image.ts @@ -78,7 +78,7 @@ export async function execute( */ async function pollPredictionStatus( predictionId: string, - maxAttempts = 5, + maxAttempts = 20, interval = 2000 ): Promise { for (let attempt = 0; attempt < maxAttempts; attempt++) {