From aeca1adf896dfaafd16ac15e3030271c2d075b2b Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Fri, 4 Apr 2025 01:48:15 +0000 Subject: [PATCH] fix: Add maxDuration constant for chat API route --- app/api/chat/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 94f53e9..0856577 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -4,6 +4,9 @@ import { google } from '@ai-sdk/google'; import { streamText } from "ai"; import { z } from "zod"; +export const maxDuration = 60 + + // Read the XML guide from file export async function POST(req: Request) { const body = await req.json();