diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index c43a8f0..d145621 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -6,7 +6,7 @@ import { z } from "zod"; import { geolocation } from '@vercel/functions' // Allow streaming responses up to 30 seconds -export const maxDuration = 30; +export const maxDuration = 60; export async function POST(req: Request) { const { messages, model } = await req.json(); diff --git a/app/page.tsx b/app/page.tsx index 03598b2..428ae90 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -89,6 +89,8 @@ import { ChartTooltipContent, } from "@/components/ui/chart"; +export const maxDuration = 60; + export default function Home() { const inputRef = useRef(null); const [lastSubmittedQuery, setLastSubmittedQuery] = useState("");