An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: increase API chat route timeout to 300 seconds
Yoshiki Miura72f190e650e6
diff --git a/app/api/chat/route.ts b/app/api/chat/route.tsindex 13dd135a..785c4909 100644--- a/app/api/chat/route.ts+++ b/app/api/chat/route.ts@@ -8,7 +8,7 @@ import { perfLog, perfTime } from '@/lib/utils/perf-logging'import { resetAllCounters } from '@/lib/utils/perf-tracking'import { isProviderEnabled } from '@/lib/utils/registry'-export const maxDuration = 30+export const maxDuration = 300export async function POST(req: Request) {const startTime = performance.now()