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.
1 parent 1d03d10 commit 1e0b1edCopy full SHA for 1e0b1ed
app/api/chat/route.ts
@@ -15,7 +15,7 @@ import {
15
} from "@/lib/langfuse"
16
import { getSystemPrompt } from "@/lib/system-prompts"
17
18
-export const maxDuration = 300
+export const maxDuration = Number(process.env.MAX_DURATION) || 60
19
20
// File upload limits (must match client-side)
21
const MAX_FILE_SIZE = 2 * 1024 * 1024 // 2MB
env.example
@@ -50,3 +50,6 @@ AI_MODEL=global.anthropic.claude-sonnet-4-5-20250929-v1:0
50
51
# Access Control (Optional)
52
# ACCESS_CODE_LIST=your-secret-code,another-code
53
+
54
+# API Route Configuration (Optional)
55
+# MAX_DURATION=60 # Max duration in seconds for API routes (default: 60)
0 commit comments