Skip to content

Commit 1908901

Browse files
committed
fix: increase execution time - image generation
1 parent 29278f7 commit 1908901

File tree

1 file changed

+2
-2
lines changed
  • apps/masterbots.ai/app/api/generate-images

1 file changed

+2
-2
lines changed

apps/masterbots.ai/app/api/generate-images/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { type NextRequest, NextResponse } from 'next/server'
55
import OpenAI from 'openai'
66

77
/**
8-
* Maximum execution time (55 seconds, slightly less than the Edge runtime limit)
8+
* Maximum execution time (2 minutes)
99
*/
10-
const TIMEOUT_MILLIS = 55 * 1000
10+
const TIMEOUT_MILLIS = 2 * 60 * 1000
1111

1212
/**
1313
* Default image size for OpenAI models

0 commit comments

Comments
 (0)