diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 10ae529..e8719a5 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -16,7 +16,7 @@ import { } from "@/lib/langfuse" import { getSystemPrompt } from "@/lib/system-prompts" -export const maxDuration = 60 +export const maxDuration = parseInt(process.env.MAX_DURATION || "60", 10) // File upload limits (must match client-side) const MAX_FILE_SIZE = 2 * 1024 * 1024 // 2MB